I am trying to get information about the current route on a non-Route component.
React Router provides singleton versions of history (browserHistory and hashHistory) that you can import and use from anywhere in your application.
Previously, it would seem you could use browserHistory
, but that no longer appears to be supported. I'm using react-router-redux^4.0.8
and @types\react-router-redux^5.0.1
.
How can I access the current route location?