3
在react-router
版本0.13.3我穿过状态反应路由器的1.x
Router.run(routes, createBrowserHistory, function(Handler, state) {
React.render(<Handler query={ state } path={ state.pathname }/>, document.getElementById('app'))
});
在react-router
1.0.0.rc3我
let history = createBrowserHistory();
React.render(<Router history={ history } >{ routes }</Router>, document.getElementById('app'));
随着react-router
0.13.3,我能够通过回调将状态传递给我的组件。我想知道我可以如何做react-router
1.x?