title: Route not defined react router and spring boot server
body: <p>I want to add react-route to my app, i have the code below:</p>
  
  <p>import React from 'react';
  import ReactDOM from 'react-dom';</p>
  
  <pre><code>import { Router, browserHistory } from 'react-router';
  
  import App from './App.js';
  
  ReactDOM.render(
      &lt;Router history={browserHistory}&gt; 
          &lt;Route exact path="/" component={App} /&gt; 
      &lt;/Router&gt;,
      document.getElementById('root')
  );
  </code></pre>
  
  <p>app:</p>
  
  <pre><code>import React from 'react';
  
  class App extends React.Component {
      render() {
          return (
              &lt;div className="container"&gt;
                  Hello
              &lt;/div&gt;
          );
      }
  }
  
  export default App;
  </code></pre>
  
  <p>I have a spring boot server which listens on 8080, in browser i get error when checking localhost:8080 (debug mozilla):</p>
  
  <pre><code>ReferenceError: Route is not defined
  </code></pre>
  
  <p>I have  "react-router": "^4.1.1".</p>
  
  <p>EDIT:
  imported route but i get now:</p>
  
  <pre><code>TypeError: i.props.history is undefined
  </code></pre>
  
  <p>UPDATE:
  Installed react-router 3.0.2 and worked.</p>