Any method to get URL parameters from a HASH URL with react-router.
-
which version of react-router are you using?Jörn– Jörn2016-01-27 17:27:14 +00:00Commented Jan 27, 2016 at 17:27
-
you could do something similar to this stackoverflow.com/questions/34666087/… ?Dmitry Shvedov– Dmitry Shvedov2016-01-30 07:34:39 +00:00Commented Jan 30, 2016 at 7:34
-
Tried it, but didn't work used a regex to extract the data I wanted ...Rajika Imal– Rajika Imal2016-02-01 12:30:32 +00:00Commented Feb 1, 2016 at 12:30
Add a comment
|
1 Answer
You should be able to access the location in your <Route> Component via this.props.location and pass it down to child components as described in the v2.0.0 Upgrade Guide: https://github.com/ReactTraining/react-router/blob/v2.8.1/upgrade-guides/v2.0.0.md#accessing-location
location docs:
https://github.com/ReactTraining/react-router/blob/v2.8.1/docs/Glossary.md#location