1  安装 react-router模块

react-router

2  编写路由模块代码

react-router

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

react-router

 

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

 

相关文章:

  • 2021-06-20
  • 2021-09-17
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-16
  • 2021-09-02
相关资源
相似解决方案