Created
February 5, 2020 07:48
-
-
Save FBosler/df8ccc62b7a8127f4a06d581c2a0cacf to your computer and use it in GitHub Desktop.
First app version with react router
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 React from "react"; | |
import { BrowserRouter as Router, Route } from "react-router-dom"; | |
import Milestones from "./components/layout/Milestones"; | |
import About from "./components/layout/About"; | |
import "bootstrap/dist/css/bootstrap.min.css"; | |
const App = () => { | |
return ( | |
<Router> | |
<div className="App"> | |
<Route exact path="/"> | |
<Milestones referrals={12} /> | |
</Route> | |
<Route exact path="/about"> | |
<About /> | |
</Route> | |
</div> | |
</Router> | |
); | |
}; | |
export default App; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment