Last active
November 22, 2020 01:20
-
-
Save karenying/d1624411821fdbac4eae1b248becbdfa to your computer and use it in GitHub Desktop.
This file contains 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 { BrowserRouter as Router, Route } from 'react-router-dom'; | |
function App() { | |
return ( | |
<div className='App'> | |
<Router> | |
<Route exact path='/' component={Home} /> | |
<Route exact path='/home' component={Home} /> | |
<Route exact path='/about' component={About} /> | |
<Route exact path='/contact' component={Contact} /> | |
</Router> | |
</div> | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment