Last active
February 6, 2020 07:56
-
-
Save FBosler/bf3c1abd66f3fd33c2df6ad8e33f5230 to your computer and use it in GitHub Desktop.
FBosler / app_v2_b.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 { Container } from "react-bootstrap"; | |
import Landing from "./components/layout/Landing"; | |
import About from "./components/layout/About"; | |
import "bootstrap/dist/css/bootstrap.min.css"; | |
const App = () => { | |
return ( | |
<Router> | |
<div className="App"> | |
<Container> | |
<Route exact path="/"> | |
<Landing /> | |
</Route> | |
<Route exact path="/about"> | |
<About /> | |
</Route> | |
</Container> | |
</div> | |
</Router> | |
); | |
}; | |
export default App; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment