如题。。。。。。。。。。。
点击表单跳转页面 以前用browserhistory.push(url) 现在怎么实现?
wlt
#7
还是使用history.push
可以通过withRouter给自己的组件添加history作为props
用法:
withRouter(MyComponent)
学习react-router4 api 文档: react-router4