React router 跳转有几种方法我就知道<Link to="/"> ...</Link>, 如果点击button按钮 应给怎么写,还有就是在函数方法里面怎么跳转?
1 回答

慕桂英3389331
TA贡献2036条经验 获得超8个赞
使用 this.context.router 声明 该类contextTypes
className.contextTypes = { router: React.PropTypes.isRequired}
添加回答
举报
0/150
提交
取消