Skip to content
Closed
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
4 changes: 4 additions & 0 deletions docs/latest/advanced/app-wrapper.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ structure of the HTML document, typically up until the `<body>`-tag. It is only
rendered on the server and never on the client. The passed `Component` value
represents the children of this component.

> [warn]: If you have just started a fresh new project, the entry file will will
> be `main.ts`, not `main.tsx`. If that's the case, rename it, then edit the
> [vite config](/docs/advanced/vite), set `serverEntry: "./main.tsx",`.

```tsx main.tsx
function AppWrapper({ Component }) {
return (
Expand Down
Loading