Skip to content

Instantly share code, notes, and snippets.

@ashour
Created February 28, 2020 15:17
Show Gist options
  • Select an option

  • Save ashour/0def373f67b62b2a3f5f953bb998b2e3 to your computer and use it in GitHub Desktop.

Select an option

Save ashour/0def373f67b62b2a3f5f953bb998b2e3 to your computer and use it in GitHub Desktop.
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