官术网_书友最值得收藏!

Route component props

The component that gets rendered when the <Route> path matches the browser's URL path receives certain props, such as history, location, match, and staticContext. The data provided by these props includes information pertaining to the route. The props are available to the component that gets rendered using the componentrender, or children props of the <Route> component.

The staticContext property is set when you are rendering the application on the server side and it is not available (as in, set to undefined) in the client-side router that is, when using the <BrowserRouter> interface. Server-side rendering of the application is covered in the upcoming chapters.

主站蜘蛛池模板: 察隅县| 六盘水市| 邛崃市| 靖远县| 恭城| 东光县| 龙里县| 嘉荫县| 修文县| 祥云县| 肃南| 东台市| 五峰| 望城县| 惠东县| 茂名市| 夹江县| 淮南市| 易门县| 泰安市| 兰州市| 左权县| 泗水县| 清镇市| 荔波县| 罗甸县| 剑河县| 久治县| 三明市| 南开区| 宁夏| 遂川县| 麻江县| 元谋县| 延津县| 湖口县| 克东县| 郯城县| 潞城市| 丰镇市| 西乌|