File tree Expand file tree Collapse file tree 1 file changed +12
-14
lines changed Expand file tree Collapse file tree 1 file changed +12
-14
lines changed Original file line number Diff line number Diff line change @@ -15,25 +15,23 @@ Example
15
15
-------
16
16
17
17
``` xml
18
- <Routes >
19
- <Route path =" /" handler ={App}>
18
+ <Route path =" /" handler ={App}>
20
19
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}/>
26
25
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" />
30
29
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}/>
33
32
34
- </Route >
35
33
</Route >
36
- </Routes >
34
+ </Route >
37
35
```
38
36
39
37
This is all really just a shortcut for the less intuitive version of the
You can’t perform that action at this time.
0 commit comments