Skip to content

Instantly share code, notes, and snippets.

@theodesp
Last active November 14, 2019 12:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save theodesp/a041e3f0176516b6767a2d71e9c0376b to your computer and use it in GitHub Desktop.
Save theodesp/a041e3f0176516b6767a2d71e9c0376b to your computer and use it in GitHub Desktop.
import React from 'react';
import {Switch, Route, HashRouter as Router} from 'react-router-dom';
import Home from "./Home";
import './App.css';
const App = () => (
<Router>
<Switch>
<Route exact path="/" component={Home} />
</Switch>
</Router>
);
export default App;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment