Skip to content

Commit

Permalink
Fix syntax errors in codes (#360)
Browse files Browse the repository at this point in the history
  • Loading branch information
AliN11 authored Nov 12, 2022
1 parent 5244fb8 commit a99db2e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions docs/guide/route-configs.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ To create children routes and have them automatically added to the parent route,

```ts
const routeConfig = createRouteConfig().createChildren((createRoute) => [
createRoute({ path: '/' })
createRoute({ path: '/about' })
createRoute({ path: '/' }),
createRoute({ path: '/about' }),
createRoute({ path: '/contact' })
])
```
Expand All @@ -34,12 +34,12 @@ The `routeConfig.createChildren(...)` utility can continue to be used on child r

```ts
const routeConfig = createRouteConfig().createChildren((createRoute) => [
createRoute({ path: '/' })
createRoute({ path: '/about' })
createRoute({ path: '/contact' })
createRoute({ path: '/' }),
createRoute({ path: '/about' }),
createRoute({ path: '/contact' }),
createRoute({ path: '/blog' }).createChildren((createRoute) => [
createRoute({ path: '/' })
createRoute({ path: '/:slug' })
createRoute({ path: '/' }),
createRoute({ path: '/:slug' }),
])
])
```
Expand Down

0 comments on commit a99db2e

Please sign in to comment.