Skip to content

Fix router switch

Axel Bocciarelli requested to merge fix-routes into master

Fix #406 (closed) - with Switch, React Router renders the first child element it can. If the child elements of a Switch are all routes, all is well, the routes are checked one by one... but if one of the children is not a route, then React Router renders it and stops checking.

Merge request reports