reactjs - How to get parameters from hash URL with react-router? -
any method url parameters hash url react-router.
you should able access location in <route>
component via this.props.location
, pass down child components described in 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
Comments
Post a Comment