title: React Router does not update View
body: <p>I am beginning to work with React and I have an issue understanding how to make <a href="https://reacttraining.com/react-router/web/guides/quick-start" rel="nofollow noreferrer">react-router</a> work. </p>
  
  <p>In my project, I created an <code>App.js</code> file that exports a simple render function:</p>
  
  <pre><code>export default class App extends React.Component {
      render () {
          return &lt;Router&gt;
              &lt;div&gt;
                  &lt;Link to="/connected"&gt;Login&lt;/Link&gt;
                  &lt;Link to="/"&gt;Home&lt;/Link&gt;
  
                  &lt;Route path="/connected" component={Connected}/&gt;
                  &lt;Route exact path="/" component={LoginPage}/&gt;
  
              &lt;/div&gt;
          &lt;/Router&gt;
      }
  }
  </code></pre>
  
  <p>Of course, on the top of the file, I import two components: <code>Connected</code> and <code>LoginPage</code> and a bunch of other components:</p>
  
  <pre><code>import React from 'react'
  
  import {
      HashRouter as Router,
      Route,
      Link
  } from 'react-router-dom'
  
  import LoginPage from './pages/LoginPage'
  import Connected from './pages/Connected'
  </code></pre>
  
  <p>My components are quite simple:</p>
  
  <pre><code>import React from 'react'
  
  export default class LoginPage extends React.Component {
  
      render () {
          return  &lt;div&gt;
              Hello World 1
          &lt;/div&gt;
      }
  }
  </code></pre>
  
  <p>And pretty much the same for the second component.</p>
  
  <p>My problem is: </p>
  
  <p>When I click on a <code>&lt;Link to="/"&gt;Home&lt;/Link&gt;</code>, the page is not updated with the <code>LoginPage</code> component. But if I refresh the page, the <code>LoginPage</code> components appears. If I click on <code>&lt;Link to="/connected"&gt;Login&lt;/Link&gt;</code>, the router does not update the page and I also need to refresh completely the page to display the right component. </p>
  
  <p><strong>What am I doing wrong? What other informations would you need to help me resolve my problem?</strong></p>