Accessing Location Within @reach/router
Last updated
Was this helpful?
Last updated
Was this helpful?
The API of departs a bit from in a couple ways. The location
prop which you may be used to having access to automatically is instead available through the component.
This is a contrived example, but you can imagine how you'd use it to access state
or even create an HOC similar to withRouter
.