app.tsx

app.tsx is the resolved app root module.


Import

app.tsx is loaded as the virtual app module.


Type

export default function App(): JSX.Element;

Parameters

The default app component takes no required arguments.


Return value

  • Type: JSX.Element

Returns the root app element.


Behavior

  • The Vite plugin resolves solid-start:app to src/app.tsx or src/app.jsx.
  • The app filename determines whether the default entry files use .tsx or .jsx.

Examples

Basic usage

import { Router } from "@solidjs/router";
import { FileRoutes } from "@solidjs/start/router";
export default function App() {
return (
<Router>
<FileRoutes />
</Router>
);
}

Last updated: 7/27/26, 1:53 AMEdit this pageReport an issue with this page