pure and impure components code example
Example 1: pure components
// some-other-file.js
import history from './history'
history.push('/go-here')
Example 2: pure components
import { browserHistory } from 'react-router';
browserHistory.push('/some/path');