- React Router Quick Start Guide
- Sagar Ganatra
- 113字
- 2021-07-23 16:41:34
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 component, render, 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.
推薦閱讀
- UI智能化與前端智能化:工程技術、實現方法與編程思想
- 表哥的Access入門:以Excel視角快速學習數據庫開發(第2版)
- 微服務從小白到專家:Spring Cloud和Kubernetes實戰
- Learning Node.js for .NET Developers
- Python語言科研繪圖與學術圖表繪制從入門到精通
- 小程序從0到1:微信全棧工程師一本通
- Django Design Patterns and Best Practices
- Python編程快速上手2
- C語言王者歸來
- 劍指大數據:企業級電商數據倉庫項目實戰(精華版)
- Python深度學習與項目實戰
- Implementing Splunk(Second Edition)
- 微服務設計
- 開源網絡地圖可視化:基于Leaflet的在線地圖開發
- Python編程基礎與數據分析