title: react-router-dom v ^5.2.0 Routes troubleshooting
body: <p>with all my react-apps that I've been working with,this configuration worked perfectly,but for now,routes won't render,I get my url changed but page is still the same,even 404 page isn't working</p>
  <pre><code>import React from 'react';
  import {BrowserRouter as Router, Switch, Route} from 'react-router-dom';
  import LandingPage from './LandingPage';
  import AuthFlow from './AuthFlow';
  import NotFound from './404';
  import Nav from '../components/Navbar/Navbar';
  import Login from './AuthFlow/Login/Login';
  
  function RootNavigation() {
    return (
      &lt;Router&gt;
        &lt;Nav&gt;&lt;/Nav&gt;
        &lt;Switch&gt;
          &lt;Route exact to='/' component={LandingPage}&gt;&lt;/Route&gt;
          &lt;Route exaect to='/login' component={Login}&gt;&lt;/Route&gt;
          &lt;Route to='*' component={NotFound}&gt;&lt;/Route&gt;
        &lt;/Switch&gt;
      &lt;/Router&gt;
    );
  }
  
  export default RootNavigation;
  
  </code></pre>
  <pre><code>
  import React from 'react';
  import RootNavigation from './layouts/RootNavigation';
  
  function App() {
    return &lt;RootNavigation&gt;&lt;/RootNavigation&gt;;
  }
  
  export default App;
  </code></pre>