Skip to content

Instantly share code, notes, and snippets.

@adambeynon
Created October 23, 2014 16:39
Show Gist options
  • Save adambeynon/daebc3267d218674dc44 to your computer and use it in GitHub Desktop.
Save adambeynon/daebc3267d218674dc44 to your computer and use it in GitHub Desktop.
react to fire
Router.map do
route :index do
index :inbox_stats
route 'message/:id'
end
route :calendar
index :dashboard
end
var routes = (
<Routes location="history">
<Route handler={App}>
<Route name="inbox" handler={Inbox}>
<Route name="message" path=":messageId" handler={Message}/>
<DefaultRoute handler={InboxStats}/>
</Route>
<Route name="calendar" handler={Calendar}/>
<DefaultRoute handler={Dashboard}/>
</Route>
</Routes>
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment