In React Router 3, how do you match exactly against a route containing query params?
Something like this,
<Route path="about?qs1=:qs&qs2=:qs2" component={About} />
In React Router 3, how do you match exactly against a route containing query params?
Something like this,
<Route path="about?qs1=:qs&qs2=:qs2" component={About} />
Query params are not part of a route in that sense. You will need to check for them inside your component, for example like this:
You could also check for the query params inside
componentDidMount
and redirect your users to a different route (e.g. 404). Read more about Route Matching in the official docs.