0
试图建立反应路由阵营路由器,最大调用堆栈大小超过
这是我的主要index.js文件
class App extends React.Component{
constructor(props) {
super(props);
this.state = {
};
}
render(){
return (
<Router history={hashHistory}>
<Route path={'/'} component={App}>
<Route path={'/quizzes'} component={Quiz}> </Route>
</Route>
</Router>
)
};
};
ReactDOM.render(<App />,
document.getElementById('content'));
我得到的错误说时,遇到了一些奇怪的错误Uncaught RangeError: Maximum call stack size exceeded
不知道为什么
<路由路径= { '/'}成分= {应用}>心不是那个递归? –
,但如果我删除它,我得到'[react-router]位置“/”与任何路由不匹配# –
没关系我现在解决了。设置一个不同的位置/ –