react-router-dom v4 nested routes issue allover the internet

Created on 9 Apr 2017  路  3Comments  路  Source: ReactTraining/react-router

In reference to the unresolved question (as a final conclusion)

I am also getting the same issue.

https://reacttraining.com/react-router/web/guides/quick-start promotes react-router-dom

Also, people find better to list down routes in one file rather inside components.

All 3 comments

Use react-router-config for a central route configuration.

Match is an old API. Please read the updated docs. Switch is re-exported by react-router-dom: https://github.com/ReactTraining/react-router/blob/master/packages/react-router-dom/modules/Switch.js

@timdorr
Thanks for responding.

I would, in reference to this ticket, recommend working examples of code for the mentioned issues devs are facing in common.

There are plenty of examples of all the APIs for react-router-config on the Readme: https://github.com/ReactTraining/react-router/tree/master/packages/react-router-config

If those are sufficient, please submit a PR with some examples you would like included in the repo.

Was this page helpful?
0 / 5 - 0 ratings