Skip to content

Instantly share code, notes, and snippets.

@natorojr
Last active August 29, 2015 14:20
Show Gist options
  • Save natorojr/05bf8bd54436941bbe59 to your computer and use it in GitHub Desktop.
Save natorojr/05bf8bd54436941bbe59 to your computer and use it in GitHub Desktop.
react-router
Router.run(routes, Router.HistoryLocation, function (Handler, state) {
React.render(<Handler routeParams={state.params} queryParams={state.query} />, document.getElementById('root'));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment