As I understand <Route path=/ component={App} />
will gives App
routing-related props like location
and params
. If my App
component has many nested child components, how do I get the child component to have access to these props without:
- passing props from App
- using window object
- creating routes for nested child components
I thought this.context.router
would have some information related to the routes, but this.context.router
seems to only have some functions to manipulate the routes.