title: ./src/App.js Attempted import error: 'Switch' is not exported from 'react-router-dom'
body: <p>I can't figure it out why doesn't work. I have uninstalled the react-router-dom package and reinstalled it, but I always have the same error.</p>
  <p>The error I'm getting: <strong>./src/App.js
  Attempted import error: 'Switch' is not exported from 'react-router-dom'.</strong></p>
  <p>This is my code.
  I hope that someone could give me a hand,
  Thanks in advance</p>
  <pre><code>import './App.css';
  import { BrowserRouter as Router, Switch, Route } from &quot;react-router-dom&quot;;
  import NavBar from '../src/Components/UI/NavBar/NavBar';
  import Footer from '../src/Components/UI/Footer/Footer';
  import Home from './Components/Views/Home/Home';
  
  function App() {
    return (
      &lt;Router&gt;
        &lt;NavBar/&gt;
        &lt;Switch&gt;
          &lt;Route path=&quot;/&quot;&gt;
            &lt;Home/&gt;
          &lt;/Route&gt; 
        &lt;/Switch&gt;
        &lt;Footer/&gt;
      &lt;/Router&gt;
    );
  }
  
  export default App;
  </code></pre>