Let's say I have the following 2 routes:
... <Route exact path="/:param1?/" component={Home}/> <Route path="/news" component={News}/> ...
now when i try to attack the /news route, the root route for Home launched with param1 parameter ...
I assume that the solution would be to put a question mark in front of param1, like this /?param1 so that it can be ported from routes, but I cannot figure out how to do this in response-router v4
react-router react-router-v4
henk
source share