title: Cannot read property 'location' of undefined
body: <p>I try to use react-router-dom 4.0.0 library. But it send me this error</p>
  
  <blockquote>
    <p>Uncaught TypeError: Cannot read property 'location' of undefined</p>
  </blockquote>
  
  <p>It seems that problem in browserHistore. Before I used react-router 2.x.x and everything was alright. 
  This is my index.js</p>
  
  <pre><code>import 'babel-polyfill'
  import React from 'react'
  import { Router, hashHistory } from 'react-router-dom'
  import { render } from 'react-dom'
  import { Provider } from 'react-redux'
  import { configureStore } from './store'
  import { routes } from './routes'
  
  const store = configureStore()
  
  render(
    &lt;Provider store={store}&gt;
      &lt;Router history={hashHistory} routes={routes} /&gt;
    &lt;/Provider&gt;,
    document.getElementById('root')
  )
  </code></pre>
  
  <p>This is my routes</p>
  
  <pre><code>import React from 'react'
  import { IndexRoute, Route } from 'react-router-dom'
  import App from './containers/App'
  import Main from './containers/Main'
  import First from './containers/First'
  
  export const routes = (
    &lt;Route path='/' component={Main}&gt;
      &lt;Route path='/path' component={First} /&gt;
      &lt;IndexRoute component={App} /&gt;
    &lt;/Route&gt;
    )
  </code></pre>
  
  <p>And also for server side express I set this get configuration</p>
  
  <pre><code>app.get('*', function root(req, res) {
    res.sendFile(__dirname + '/index.html');
  });
  </code></pre>