I have a component that has some navigation buttons on it, with the routes setup something like this:
<Route path="/" component={App}>
<IndexRoute component={HomePage} />
<Route path="/id/person" component={Person} >
<IndexRedirect to="summary" />
<Route path="/id/person/summary" component={Summary} />
<Route path="/id/person/history" component={History} />
</Route>
</Route>
This all runs in a React/Redux setup and works fine up to the HomePage. I have no idea how to render the sub-routes and the examples on line are a bit scarce.
In the Person component, should I do:
<div>
{props.children}
</div>
But then how do I pass the Redux state down to that? Someting doesn't make sense to me, although it feels like it should be something really simple.