会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
SSXfont
宝刀锋从磨砺出,梅花香自苦寒来
博客园
首页
新随笔
联系
订阅
管理
2020年2月18日
11、react withRouter的原理与使用
摘要: 高阶组件中的withRouter, 作用是将一个组件包裹进Route里面, 然后react-router的三个对象history, location, match就会被放进这个组件的props属性中. 作用:把不是通过路由切换过来的组件,将react-router 的 history、locatio
阅读全文
posted @ 2020-02-18 21:05 极客小乌龟
阅读(1254)
评论(0)
推荐(0)
编辑
公告