Navigation - alternative to browserHistory in react-router v4

Viewed 1690

Previously, I was able to reroute user (e.g. on successful login) using browser history:

import { browserHistory } from 'react-router'

browserHistory.replace('/home')

In the new react-router I am no longer able to import browserHistory, what is the alternative way to achieve my goal?

1 Answers
Related