Skip to content

Commit

Permalink
[fixed] Docs Update
Browse files Browse the repository at this point in the history
This update simply removes the `<Routes/>` from here.
  • Loading branch information
edygar committed Feb 13, 2015
1 parent d69f1c1 commit f5d4f36
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions docs/api/components/DefaultRoute.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,23 @@ Example
-------

```xml
<Routes>
<Route path="/" handler={App}>
<Route path="/" handler={App}>

<!--
When the url is `/`, this route will be active. In other
words, `Home` will be the `<RouteHandler/>` in `App`.
-->
<DefaultRoute handler={Home}/>
<!--
When the url is `/`, this route will be active. In other
words, `Home` will be the `<RouteHandler/>` in `App`.
-->
<DefaultRoute handler={Home}/>

<Route name="about" handler={About}/>
<Route name="users" handler={Users}>
<Route name="user" handler={User} path="/user/:id"/>
<Route name="about" handler={About}/>
<Route name="users" handler={Users}>
<Route name="user" handler={User} path="/user/:id"/>

<!-- when the url is `/users`, this will be active -->
<DefaultRoute name="users-index" handler={UsersIndex}/>
<!-- when the url is `/users`, this will be active -->
<DefaultRoute name="users-index" handler={UsersIndex}/>

</Route>
</Route>
</Routes>
</Route>
```

This is all really just a shortcut for the less intuitive version of the
Expand Down

0 comments on commit f5d4f36

Please sign in to comment.