- 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.
推薦閱讀
- Java應用與實戰
- Learning SAP Analytics Cloud
- 網頁設計與制作教程(HTML+CSS+JavaScript)(第2版)
- Amazon S3 Cookbook
- Scala編程實戰(原書第2版)
- Getting Started with Laravel 4
- HTML5與CSS3基礎教程(第8版)
- Scala Data Analysis Cookbook
- 持續集成與持續交付實戰:用Jenkins、Travis CI和CircleCI構建和發布大規模高質量軟件
- Python機器學習算法與應用
- Arduino可穿戴設備開發
- Simulation for Data Science with R
- OpenCV Android Programming By Example
- C語言從入門到精通
- Node.js 6.x Blueprints