Hacker News new | ask | show | jobs
by asidiali 3430 days ago
I believe what you're looking for is `location.query` which can be accessed by children of your router (via `this.props.location.query`)
1 comments

Thank you, I'll give that a try. The closest I saw in the current docs was via the `history` object, which I'd then have to provide to `<Router>`, which seemed sad. Using the props makes more sense! It looks like I want to use `withRouter` to get access to the location prop.