- React Router Quick Start Guide
- Sagar Ganatra
- 56字
- 2021-07-23 16:41:33
Route props
When you look at the source code of React-Router, the <Route> component accepts the following props:
Route.propTypes = {
computedMatch: PropTypes.object, // private, from <Switch>
path: PropTypes.string,
exact: PropTypes.bool,
strict: PropTypes.bool,
sensitive: PropTypes.bool,
component: PropTypes.func,
render: PropTypes.func,
children: PropTypes.oneOfType([PropTypes.func, PropTypes.node]),
location: PropTypes.object
};
Let's take a look at each of these props in the following section.
推薦閱讀
- Learn Blockchain Programming with JavaScript
- Facebook Application Development with Graph API Cookbook
- Java Web開發學習手冊
- 軟件界面交互設計基礎
- R語言游戲數據分析與挖掘
- Python進階編程:編寫更高效、優雅的Python代碼
- SEO實戰密碼
- 網絡爬蟲原理與實踐:基于C#語言
- Cocos2d-x學習筆記:完全掌握Lua API與游戲項目開發 (未來書庫)
- 表哥的Access入門:以Excel視角快速學習數據庫開發(第2版)
- Python爬蟲、數據分析與可視化:工具詳解與案例實戰
- 從“1”開始3D編程
- Spring Web Services 2 Cookbook
- Thymeleaf 3完全手冊
- 流程讓管理更高效:流程管理全套方案制作、設計與優化