Created
August 7, 2021 07:07
-
-
Save percybolmer/8971f07a7d164b4d43109a28e6d015ef to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Navbar from '../components/navbar/navbar' | |
import { BrowserRouter, HashRouter, Switch, Route } from "react-router-dom"; | |
import Home from '../components/home/home' | |
import Contact from '../components/contact/contact' | |
import About from '../components/about/about' | |
function Main() { | |
return ( | |
<div> | |
<HashRouter> | |
<Navbar></Navbar> | |
<div className="content"> | |
<Switch> | |
<Route exact path="/" component={Home}/> | |
<Route path="/contact" component={Contact}/> | |
<Route path="/about" component={About}/> | |
</Switch> | |
</div> | |
</HashRouter> | |
</div> | |
) | |
} | |
export default Main; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment