In React-router 1.0 / 2.0, you can access the routing parameters this.props.paramsfrom the Route component, but there seems to be no supported way to access the parameters from the component deep in the aforementioned Route component.
Access to the data can be obtained through context.location, but this raises a warning stating that it is out of date.
source
share