Skip to content

How to correctly use react-router? #69873

Discussion options

You must be logged in to vote

Your routing is a bit flawed. Try this instead:

This should solve most, if not all, of your errors.

Share
Follow
answered May 30, 2016 at 9:05
Chris's user avatar
Chris
59.1k2020 gold badges118118 silver badges141141 bronze badges
This feel, intuitively, like it should work. But I'm still getting all the same problems. –
jmknoll
CommentedMay 30, 2016 at 9:09
1
Are your dependencies updated? What version of react and react-router do you use? –
Chris
CommentedMay 30, 2016 at 9:14
React 0.14.8, and react-router 1.0.3. –
jmknoll
CommentedMay 30, 2016 at 9:21
1
I believe we've found the problem in that case. react-router v1.0.3 is nearly 6 months old. Latest version is 2.4.1. browserHistory wa…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Amjad-722
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants