Skip to content

Instantly share code, notes, and snippets.

@liammclennan
Created June 1, 2014 09:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save liammclennan/1014fffd40371cb8286f to your computer and use it in GitHub Desktop.
Save liammclennan/1014fffd40371cb8286f to your computer and use it in GitHub Desktop.
React with design with Routing
euclid.start([{
title: 'Dashboard',
route: '/dashboard/:date'
entry: function (date) {
return [pageComponent, initialProps];
},
exit: function () {},
actions: {
showDetail: function (itemId) {
return updatedProps;
},
update: function () {
return updatedProps;
}
}
}, {
title: 'Timeline',
route: '/timeline'
entry: function () {},
exit: function () {},
actions: {}
}], document.body);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment