Skip to content

Commit f5d4f36

Browse files
committed
[fixed] Docs Update
This update simply removes the `<Routes/>` from here.
1 parent d69f1c1 commit f5d4f36

File tree

1 file changed

+12
-14
lines changed

1 file changed

+12
-14
lines changed

docs/api/components/DefaultRoute.md

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,25 +15,23 @@ Example
1515
-------
1616

1717
```xml
18-
<Routes>
19-
<Route path="/" handler={App}>
18+
<Route path="/" handler={App}>
2019

21-
<!--
22-
When the url is `/`, this route will be active. In other
23-
words, `Home` will be the `<RouteHandler/>` in `App`.
24-
-->
25-
<DefaultRoute handler={Home}/>
20+
<!--
21+
When the url is `/`, this route will be active. In other
22+
words, `Home` will be the `<RouteHandler/>` in `App`.
23+
-->
24+
<DefaultRoute handler={Home}/>
2625

27-
<Route name="about" handler={About}/>
28-
<Route name="users" handler={Users}>
29-
<Route name="user" handler={User} path="/user/:id"/>
26+
<Route name="about" handler={About}/>
27+
<Route name="users" handler={Users}>
28+
<Route name="user" handler={User} path="/user/:id"/>
3029

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

34-
</Route>
3533
</Route>
36-
</Routes>
34+
</Route>
3735
```
3836

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

0 commit comments

Comments
 (0)