Skip to content

Commit 227e70c

Browse files
committed
Fix formatting
1 parent 7a79fcd commit 227e70c

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

docs/faq.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ It might have looked like this in v5
204204
// somewhere up the tree
205205
<Switch>
206206
<Route path="/users" component={Users} />
207-
</Switch>
207+
</Switch>;
208208

209209
// and now deeper in the tree
210210
function Users() {
@@ -215,7 +215,7 @@ function Users() {
215215
<Route path="/users/accont" component={Account} />
216216
</Switch>
217217
</div>
218-
)
218+
);
219219
}
220220
```
221221

@@ -228,7 +228,7 @@ In v6 it's almost the same:
228228
// somewhere up the tree
229229
<Routes>
230230
<Route path="/users/*" element={<Users />} />
231-
</Routes>
231+
</Routes>;
232232

233233
// and now deeper in the tree
234234
function Users() {
@@ -239,7 +239,7 @@ function Users() {
239239
<Route path="account" element={<Account />} />
240240
</Routes>
241241
</div>
242-
)
242+
);
243243
}
244244
```
245245

@@ -420,5 +420,3 @@ function User() {
420420
```
421421

422422
Instead of rending your component, remix will render the nearest [catch boundary](https://docs.remix.run/v0.20/api/app/#catchboundary) instead.
423-
424-

0 commit comments

Comments
 (0)