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

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.

主站蜘蛛池模板: 八宿县| 西乌珠穆沁旗| 阳高县| 辽中县| 林州市| 前郭尔| 古丈县| 三河市| 南城县| 涪陵区| 日喀则市| 景谷| 赞皇县| 平舆县| 米易县| 应用必备| 合肥市| 攀枝花市| 柘城县| 吉安市| 封开县| 娄底市| 建阳市| 莱阳市| 荣成市| 江口县| 鹤峰县| 射洪县| 青岛市| 铁力市| 合阳县| 云安县| 张家川| 比如县| 丹江口市| 青浦区| 文安县| 灌阳县| 东港市| 桐梓县| 邳州市|