1  安装 react-router模块

react-router

2  编写路由模块代码

react-router

3   添加路由需要跳转的两个页面

react-router

 

4 执行打包命令  npm run dev-build   刷新页面查看结果  发现路由点击无反应  是由于访问的地址是绝对地址不是动态地址

 

相关文章:

  • 2018-11-09
  • 2021-10-17
  • 2021-10-10
  • 2018-06-29
  • 2018-04-20
  • 2019-09-30
  • 2018-12-16
  • 2020-12-18
猜你喜欢
  • 2019-09-12
  • 2019-08-12
  • 2018-05-22
  • 2018-03-25
  • 2017-11-24
  • 2018-12-16
  • 2019-01-08
  • 2018-05-09
相关资源
相似解决方案