- 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 TypeScript 3 by Building Web Applications
- 流量的秘密:Google Analytics網站分析與優化技巧(第2版)
- Git Version Control Cookbook
- Objective-C應用開發全程實錄
- 高效微控制器C語言編程
- 深入淺出Electron:原理、工程與實踐
- 簡單高效LATEX
- Go語言高效編程:原理、可觀測性與優化
- Clojure for Domain:specific Languages
- Mastering Rust
- Responsive Web Design by Example
- JAVA程序設計實驗教程
- Python Web數據分析可視化:基于Django框架的開發實戰
- Java EE 8 Application Development
- HTML5秘籍(第2版)