This repository was archived by the owner on Oct 2, 2019. It is now read-only.
This repository was archived by the owner on Oct 2, 2019. It is now read-only.
Ability to openRoute from component containing Router #11
Open
Description
Hello, I'm building a component which wraps react-router.
This component looks something like this
actionHandler: function(action) {
// open a new route here
// unable to call this.toRoute, this.refs.router.toRoute
},
render: function() {
return (
<Router
ref="router"
firstRoute={this.state.route}
customAction={this.actionHandler}
/>
);
},
Any ideas how I could expose the toRoute from the wrapper container?
Metadata
Metadata
Assignees
Labels
No labels