Skip to content

Commit 7d9203c

Browse files
maksimsemenovatilafassina
authored andcommitted
Update example in routing.mdx
1 parent 8033beb commit 7d9203c

File tree

1 file changed

+9
-9
lines changed
  • src/routes/solid-start/building-your-application

1 file changed

+9
-9
lines changed

src/routes/solid-start/building-your-application/routing.mdx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -80,15 +80,15 @@ However, this can make it difficult to find the correct `index.tsx` file when se
8080
To avoid this, you can rename the `index.tsx` file to the name of the folder it is in and it will be rendered as the default export for that route:
8181

8282
```jsx {2, 4, 6}
83-
|-- routes/ // example.com
84-
|-- (blog)/
85-
|-- (article-1).tsx // example.com/blog/article-1
86-
|-- (article-2).tsx
87-
|-- (work)/
88-
|-- (job-1).tsx // example.com/work/job-1
89-
|-- (job-2).tsx
90-
|-- (socials)/
91-
|-- (socials).tsx // example.com/socials
83+
|-- routes/ // example.com
84+
|-- blog/
85+
|-- article-1.tsx // example.com/blog/article-1
86+
|-- article-2.tsx
87+
|-- work/
88+
|-- job-1.tsx // example.com/work/job-1
89+
|-- job-2.tsx
90+
|-- socials/
91+
|-- socials.tsx // example.com/socials
9292
```
9393

9494
#### Escaping nested routes

0 commit comments

Comments
 (0)