Created
February 28, 2020 15:17
-
-
Save ashour/0def373f67b62b2a3f5f953bb998b2e3 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 { IntlProvider } from "react-intl"; | |
| import { Route, Switch } from "react-router-dom"; | |
| import Navbar from "./Navbar"; | |
| import Home from "./pages/Home"; | |
| import messages from "./lang/messages"; | |
| import GameIndex from "./pages/GameIndex"; | |
| import "bulma/css/bulma.css"; | |
| const App = () => ( | |
| <IntlProvider locale="en" messages={messages["en"]}> | |
| <Navbar /> | |
| <section className="section"> | |
| <div className="container"> | |
| <Switch> | |
| <Route exact path="/" component={Home} /> | |
| <Route path="/games" component={GameIndex} /> | |
| </Switch> | |
| </div> | |
| </section> | |
| </IntlProvider> | |
| ); | |
| export default App; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment