Created
February 7, 2019 18:27
-
-
Save nicholasess/4bf1ccbcf37033f679e3351a44abcfbd 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, { Component } from "react"; | |
import { | |
BrowserRouter as Router, | |
Switch, | |
Route, | |
Redirect | |
} from "react-router-dom"; | |
exports default class App extends Component { | |
render() { | |
return ( | |
<Router> | |
<Switch> | |
<Route exact path="/" component={Home} /> | |
</Switch> | |
</Router> | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment