// replace import { BrowserRouter, Route, Link, Switch } from 'react-router-dom'; // by import { HashRouter, Route, Link, Switch } from 'react-router-dom';