4.x组成 react-router(核心路由和函数) , react-router-dom(API) , react-router-native( React Native 应用使用的API)
react-router...4.x的API router(只能有一个) , route(匹配路由渲染UI) , history, link(跳转) , navlink(特定的link,会带样式) , switch(匹配第一个路由...) , redirect(重定向) , withRouter(组件,可传入history,location,match 三个对象)
react-router 3.x组成 就是react-router
react-router...(跳转) , 路由钩子(onEnter进入,onLeave离开)4.x已经去掉
history react-router有三种模式:1.browserHistory(需要后台支持); 2.hashHistory...:基于react和ant-pc的中后台解决方案
2.4适配方案
左侧固定宽度,右侧自适应
右侧导航分别配置滚动条.控制整个page
2.5技能点分析
技能点 对应api
路由 基于umi,里面有push