docs: fix misleading main.tsx filenames (#3477)

Closes #3476

---------

Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
fry69
2026-03-29 18:38:14 +00:00
committed by GitHub
co-authored by Bartek Iwańczuk Claude Opus 4.6
parent be467d3cdb
commit 420a8cfb8e
7 changed files with 15 additions and 11 deletions
+3 -3
View File
@@ -12,7 +12,7 @@ HTML structure and only the content changes, a layout is a neat way to abstract
this. Layouts only ever render on the server. The passed `Component` value
represents the children of this component.
```tsx main.tsx
```tsx
function PageLayout({ Component }) {
return (
<div>
@@ -42,7 +42,7 @@ You can register multiple layouts for different paths. Layouts are inherited
from parent paths - a layout at `"*"` applies to all routes, and more specific
layouts are added on top:
```ts main.ts
```ts
const app = new App()
.layout("*", MainLayout) // Applied to all routes
.layout("/admin/*", AdminLayout) // Added on top for /admin/* routes
@@ -69,6 +69,6 @@ const app = new App()
Ignore the [app wrapper](/docs/concepts/app) component:
```ts main.ts
```ts
app.layout("/foo/bar", MyComponent, { skipAppWrapper: true });
```