File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -204,7 +204,7 @@ It might have looked like this in v5
204
204
// somewhere up the tree
205
205
< Switch>
206
206
< Route path= " /users" component= {Users} / >
207
- < / Switch>
207
+ < / Switch> ;
208
208
209
209
// and now deeper in the tree
210
210
function Users () {
@@ -215,7 +215,7 @@ function Users() {
215
215
< Route path= " /users/accont" component= {Account} / >
216
216
< / Switch>
217
217
< / div>
218
- )
218
+ );
219
219
}
220
220
```
221
221
@@ -228,7 +228,7 @@ In v6 it's almost the same:
228
228
// somewhere up the tree
229
229
< Routes>
230
230
< Route path= " /users/*" element= {< Users / > } / >
231
- < / Routes>
231
+ < / Routes> ;
232
232
233
233
// and now deeper in the tree
234
234
function Users () {
@@ -239,7 +239,7 @@ function Users() {
239
239
< Route path= " account" element= {< Account / > } / >
240
240
< / Routes>
241
241
< / div>
242
- )
242
+ );
243
243
}
244
244
```
245
245
@@ -420,5 +420,3 @@ function User() {
420
420
```
421
421
422
422
Instead of rending your component, remix will render the nearest [ catch boundary] ( https://docs.remix.run/v0.20/api/app/#catchboundary ) instead.
423
-
424
-
You can’t perform that action at this time.
0 commit comments