SyntaxFix
Write A Post
Hire A Developer
Questions
You can easily invoke the push method via context in v4:
this.context.router.push(this.props.exitPath);
where context is:
static contextTypes = { router: React.PropTypes.object, };