webpack中,按照文档的写法路由不跳转,下面是我的代码:
const App = () => { return ( <div> <Link to="/Login">Login</Link> </div> ) }const routes = { path: '/', component: App, chidRoutes: [ {path:'Login', component: 'Login'} ] } ReactDOM.render(<Router routes={routes} history={hashHistory} />, document.getElementById('root')) 地址栏输入无效,点击链接报错截图:
慕桂英3389331
相关分类