Answer the question
In order to leave comments, you need to log in
404 in react-router 2.0.0?
There was a problem while learning react-router. The course uses router 2.0.0-rc5 version.
If you write a route like this:
<Route path='/' component={App}>
<IndexRoute component={PostsIndex} />
<Route path="posts" component={PostsNew} />
</Route>
<Route path='/' component={App}>
<IndexRoute component={PostsIndex} />
<Route path="posts/new" component={PostsNew} />
</Route>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question