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
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
3937This 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