- 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.
推薦閱讀
- Android和PHP開發最佳實踐(第2版)
- 華為HMS生態與應用開發實戰
- Visual Basic程序設計實驗指導(第4版)
- 零基礎學Python數據分析(升級版)
- Python機器學習算法與實戰
- HDInsight Essentials(Second Edition)
- 網站構建技術
- 深入理解Android:Wi-Fi、NFC和GPS卷
- Getting Started with Python and Raspberry Pi
- OpenMP核心技術指南
- Monitoring Docker
- Head First Kotlin程序設計
- Java EE程序設計與開發實踐教程
- SQL Server 2014 Development Essentials
- Swift 2 Design Patterns