Created
February 9, 2020 18:32
-
-
Save FBosler/c9d32320145241074aaa7fed193a5d47 to your computer and use it in GitHub Desktop.
App_v3.js
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 Landing from "./components/layout/Landing"; | |
import About from "./components/layout/About"; | |
import Profile from "./components/layout/Profile"; | |
import Nav from "./components/layout/Nav"; | |
import "bootstrap/dist/css/bootstrap.min.css"; | |
const App = () => { | |
return ( | |
<Router> | |
<div className="App"> | |
<Nav /> | |
<Route exact path="/"> | |
<Landing /> | |
</Route> | |
<Route exact path="/profile"> | |
<Profile /> | |
</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