3

Any method to get URL parameters from a HASH URL with react-router.

3
  • which version of react-router are you using? Commented Jan 27, 2016 at 17:27
  • you could do something similar to this stackoverflow.com/questions/34666087/… ? Commented Jan 30, 2016 at 7:34
  • Tried it, but didn't work used a regex to extract the data I wanted ... Commented Feb 1, 2016 at 12:30

1 Answer 1

5

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

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.