- 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.
推薦閱讀
- iOS面試一戰到底
- Kibana Essentials
- Visual C++串口通信開發入門與編程實踐
- Python王者歸來
- Learning Unity 2D Game Development by Example
- Building Android UIs with Custom Views
- Fast Data Processing with Spark(Second Edition)
- Image Processing with ImageJ
- 關系數據庫與SQL Server 2012(第3版)
- Swift 2 Design Patterns
- Cinder:Begin Creative Coding
- IBM DB2 9.7 Advanced Application Developer Cookbook
- 程序員超強大腦
- Oracle API Management 12c Implementation
- 接口自動化測試持續集成:Postman+Newman+Git+Jenkins+釘釘