Skip to content

Instantly share code, notes, and snippets.

View rottmann's full-sized avatar

Peter Rottmann rottmann

View GitHub Profile
@rottmann
rottmann / gist:81b7330f574132e04dbe
Last active August 29, 2015 14:07
React-Router with Auth
// Router
var routes = (
<Routes location="history">
<Route name="index" path="/" handler={App}>
<Route name="test" path="/test/" handler={Test} />
</Route>
<Route name="login" path="/login/" handler={Login}>
</Route>
<Redirect to="index" />
</Routes>