In my app, I'd like to match both the path and the hash to different components. For example:
/pageA#modalB
Would show PageA as the main page, with modalB over the top. I've tried the following, with many variations of the path property:
<Route path="#modalB" component={modalB}/>
But nothing works.
In React Router 2 inside a modal 'controller' component, I would use:
browserHistory.listen( (location) => { //do something with loction.hash })
I was hoping for something a little more elegant in V4