Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions docs/start/framework/react/guide/routing.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,9 @@ To create a route, create a new file that corresponds to the path of the route y
| `/posts/:postId` | `posts/$postId.tsx` | Dynamic Route |
| `/rest/*` | `rest/$.tsx` | Wildcard Route |

> [!NOTE]
> When you create a layout route (like `posts.tsx`), the auto-generated component will not contain an `<Outlet />` by default. You must add an `<Outlet />` to the component to render its child routes (like `posts/$postId.tsx` and `posts/index.tsx`).

## Defining Routes

To define a route, use the `createFileRoute` function to export the route as the `Route` variable.
Expand Down
3 changes: 3 additions & 0 deletions docs/start/framework/solid/guide/routing.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,9 @@ To create a route, create a new file that corresponds to the path of the route y
| `/posts/:postId` | `posts/$postId.tsx` | Dynamic Route |
| `/rest/*` | `rest/$.tsx` | Wildcard Route |

> [!NOTE]
> When you create a layout route (like `posts.tsx`), the auto-generated component will not contain an `<Outlet />` by default. You must add an `<Outlet />` to the component to render its child routes (like `posts/$postId.tsx` and `posts/index.tsx`).

## Defining Routes

To define a route, use the `createFileRoute` function to export the route as the `Route` variable.
Expand Down