I experience some troubles with using of the react-router-component.
The next code works fine at least for links like http://localhost:8080/#about:
var App = React.createClass({
render: function() {
return (
<Locations hash>
<Location path="/" handler={IndexPage} />
<Location path="/good(/*)" handler={GoodPage} />
<Location path="/about(/*)" handler={AboutPage} />
<NotFound handler={NotFoundPage} />
</Locations>
)
}
})
Is it possible to implement deeper path processing like the next one:
http://localhost:8080/#about/insurance
?
Documentation doesn't have examples about the issue.
Thanks!
I've found an answer in the docs.
We just need to create nested components with Locations.