0
我對網絡編程確實很陌生。獲取控制檯日誌功能
這個函數是React,JSX還是其他?
如何從此函數獲取控制檯日誌?例如,打印出兒童和/或路由器值到控制檯日誌。
當前頁面是特定頁面時,我想隱藏'prev'。如何才能做到這一點?
在此先感謝。
const App = ({children, router}) => (
<div className="App">
<Stepper/>
<div className='App-main'>
<Row gutter={40}>
<Col span={20}>
{ children }
</Col>
<Col span={4}>
<Navigator
label={label(router.location.pathname)}
action={action(router, router.location.pathname)}
prev={prev(router.location.pathname)}
/>
</Col>
</Row>
</div>
</div>
)
React/JSX。您應該查看React庫的文檔。 – zfrisch