Created
February 28, 2020 14:09
-
-
Save ashour/3c20278c317eb5d9cbf2d5b51bc6c447 to your computer and use it in GitHub Desktop.
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 { Route, Switch } from "react-router-dom"; | |
import Navbar from "./Navbar"; | |
import Home from "./pages/Home"; | |
import GameIndex from "./pages/GameIndex"; | |
import "bulma/css/bulma.css"; | |
const App = () => ( | |
<> | |
<Navbar /> | |
<section className="section"> | |
<div className="container"> | |
<Switch> | |
<Route exact path="/" component={Home} /> | |
<Route path="/games" component={GameIndex} /> | |
</Switch> | |
</div> | |
</section> | |
</> | |
); | |
export default App; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment