摘要: 高阶组件中的withRouter, 作用是将一个组件包裹进Route里面, 然后react-router的三个对象history, location, match就会被放进这个组件的props属性中. 作用:把不是通过路由切换过来的组件,将react-router 的 history、locatio 阅读全文
posted @ 2020-02-18 21:05 极客小乌龟 阅读(1254) 评论(0) 推荐(0) 编辑