react目前用的路由是版本是4 ,分为:
1、react-router React Router 核心;
2、react-router-dom 用于 DOM 绑定的 React Router(Web应用);
3、react-router-native 用于 React Native 的 React Router(RN应用);
4、react-router-redux React Router 和 Redux 的集成;
5、react-router-config 静态路由配置的小助手;
转:
https://segmentfault.com/a/1190000010174260
http://react-china.org/t/react-router4/15843
https://www.cnblogs.com/null11/archive/2017/10/10/7647626.html
https://www.jianshu.com/p/0a536a547f68
https://www.jianshu.com/p/8954e9fb0c7e
https://blog.csdn.net/yu_m_k/article/details/81034032
处理刷新后cannt get的方法
https://cnodejs.org/topic/579086ad6d3f2b2014114061
http://lib.csdn.net/article/react/17855
1、通过npm安装react-router-dom
npm install --save react-router-dom
2、路由器(Router)组件选择
React-router-dom提供了<BrowserRouter>,<HashRouter>, Route, Link
3、异步请求后台数据库
fetch,reqwest
https://www.cnblogs.com/mickybg/p/8059691.html
网友评论