Skip to content

Instantly share code, notes, and snippets.

@alexbenic
Last active June 23, 2018 11:02
Show Gist options
  • Save alexbenic/b70194e9aeef8ff9831e791e21d8ea81 to your computer and use it in GitHub Desktop.
Save alexbenic/b70194e9aeef8ff9831e791e21d8ea81 to your computer and use it in GitHub Desktop.
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