如题:在react-router3的时候可以直接用
js\n import {hashHistory } from 'react-router'; \n然后 hashHistory.push(’/login’)
这种方式来进行跳转,
然而,到了4.0以上后,hashHistory不能再用了,
请教,该如何执行跳转
↧
react-router4 以上 如何做路由跳转?
↧
如题:在react-router3的时候可以直接用
js\n import {hashHistory } from 'react-router'; \n然后 hashHistory.push(’/login’)
这种方式来进行跳转,
然而,到了4.0以上后,hashHistory不能再用了,
请教,该如何执行跳转