I'm using react-router-dom 4.0.0-beta.6 in my project. I have a code like following:
<Route exact path="/home" component={HomePage}/>
And I want to get query params in HomePage
component.
I've found location.search
param, which looks like this: ?key=value
, so it is unparsed.
What is the right way to get query params with react-router v4?