Last active
June 23, 2018 11:02
-
-
Save alexbenic/b70194e9aeef8ff9831e791e21d8ea81 to your computer and use it in GitHub Desktop.
This file contains 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
render() { | |
return ( | |
<Router> | |
<Switch> | |
<Route exact path="/" | |
render={() => <Redirect to="/one" />} /> | |
<Route exact path="/one" component={Lorem} /> | |
<Route exact path="/two" component={Lorem} /> | |
<Route exact path="/three" component={Lorem} /> | |
<Route component={NotFound} /> | |
</Switch> | |
</Router> | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment