官方网址:https://reactrouter.com/web/guides/quick-start
安装方法:npm i --save react-router-dom web版本
- 组件
history 模式,h5之后的实现
hash 模式,h5之前的实现
路由
重定向 路由链接 导航路由链接切换 - 其它
a. history 对象 push replace
b. match 对象
c. withRouter 函数
官方网址:https://reactrouter.com/web/guides/quick-start
安装方法:npm i --save react-router-dom web版本