title: React-Router not working
body: <p>i am so sorry to make the similar question with
  <a href="https://stackoverflow.com/questions/43456656/react-router-v4-routes-not-working">React Router v4 routes not working</a></p>
  
  <p>because i not have enough reputation to comment the answer, so i create new question</p>
  
  <p>i am so sorry about that</p>
  
  <p>actually i have same problem, and i already try the solution from the answer
  and follow <a href="https://reacttraining.com/react-router/web/guides/quick-start" rel="nofollow noreferrer">https://reacttraining.com/react-router/web/guides/quick-start</a>
  but when i try to add 'exact' on route, its not show anything</p>
  
  <p>i use</p>
  
  <pre><code>"react": "^16.0.0",
  "react-router": "^4.2.0",
  "react-router-dom": "^4.2.2",
  </code></pre>
  
  <p>and this is my app.js code</p>
  
  <pre><code>'use strict'
  
  import React from 'react';
  import {render} from 'react-dom';
  import {
    BrowserRouter,
    Route
  } from 'react-router-dom';
  import Home from './home/home.js'
  import Login from './login/'
  import SignUp from './login/SignUp/'
  
  render((
    &lt;BrowserRouter&gt;
      &lt;div&gt;
        &lt;Route path="/" component={Login} /&gt;
        &lt;Route path="/home" component={Home} /&gt;
      &lt;/div&gt;
    &lt;/BrowserRouter&gt;
  ),document.getElementById('container'));
  </code></pre>
  
  <p>**edit</p>
  
  <p>this is my folder structure</p>
  
  <p><a href="https://i.stack.imgur.com/J0GBq.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/J0GBq.jpg" alt="enter image description here"></a></p>
  
  <p>** edit</p>
  
  <p>finally i found the solution, 
  this is my app.js code
      'use strict'</p>
  
  <pre><code>import React from 'react';
  import ReactDOM from 'react-dom';
  import {
    HashRouter as Router,
    Switch,
    Route
  } from 'react-router-dom';
  import Home from './home/home.js'
  import Login from './login/'
  import SignUp from './login/SignUp/'
  
  ReactDOM.render((
    &lt;Router&gt;
      &lt;Switch&gt;
        &lt;Route exact path="/" component={Login} /&gt;
        &lt;Route path="/signup" component={SignUp} /&gt;
        &lt;Route path="/home" component={Home} /&gt;
      &lt;/Switch&gt;
    &lt;/Router&gt;
  ),document.getElementById('container'));
  </code></pre>
  
  <p>thanks</p>