With the previous react-router I was able to do this:
import {browserHistory} from 'react-router';
from my actionCreators file and I could do something like this:
...some async action completed (for example, user logged in successfully)..
browserHistory.push('/dashboard');
But with the new react-router-dom (v4) it seems like I can no longer import browserHistory just like that and that the only way to access the history object is from a React components props
this.props.history
What would be a way to redirect my user to a new page after an async redux action has completed using react-router-dom?