Skip to content

Instantly share code, notes, and snippets.

@FBosler
Last active February 6, 2020 07:56
Show Gist options
  • Save FBosler/bf3c1abd66f3fd33c2df6ad8e33f5230 to your computer and use it in GitHub Desktop.
Save FBosler/bf3c1abd66f3fd33c2df6ad8e33f5230 to your computer and use it in GitHub Desktop.
FBosler / app_v2_b.js
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