pure component code example
Example 1: pure components
import { browserHistory } from 'react-router';
browserHistory.push('/some/path');
Example 2: pure components
// history.js
import { createBrowserHistory } from 'history'
export default createBrowserHistory({
/* pass a configuration object here if needed */
})