I want to control the router component <HashRouter></HashRouter>
from my application's root level <App> </App>
component (which contains the router as a child).
class App extends Component {
componentDidMount(){
// potentially push to history here
}
render () {
<HashRouter></HashRouter>
}
}
Is this possible? (Using react-router-dom at 4.2.2)