用的這個 history模塊根據(jù)文檔import createHistory from 'history/createBrowserHistory'const history = createHistory()const location = history.locationhistory.push('/home', { some: 'state' })然后整個電腦 cpu 就飛快的轉,瀏覽器也就卡死了,求解決方法
用 react-router 的history 瀏覽器也就卡死了,求解決方法
楊__羊羊
2018-11-13 13:13:43