Fork me on GitHub

React Router

This example demonstrates the techniques explained in the routing guide, utilizing React Router to provide a client-side routing solution. The code for this example can be found on GitHub.

The route definition and run block for this app looks like this:

var routes = (
  <Route handler={EmptyView} name="home" path="/">
    <Route handler={RecipeAdder} name="add-recipe" path="/recipe/add" />

    <Route handler={EmptyView} path="/recipe/:id">
      <Route handler={RecipeEditor} name="edit-recipe" path="edit" />
      <DefaultRoute handler={Recipe} name="recipe" />

    <DefaultRoute handler={RecipeList} />

var flux = new Fluxxor.Flux(...);, function(Handler) {
    <Handler flux={flux} />,

See a typo? Something still not clear? Report an issue on GitHub.