entry-client.tsx

entry-client.tsx is the client entry module.


Import

import { mount, StartClient } from "@solidjs/start/client";

Type

mount(() => <StartClient />, element);

Parameters

entry-client.tsx passes a StartClient render function and DOM element to mount.


Return value

The entry module does not need to export a value.


Behavior

  • defineConfig uses ${appRoot}/entry-client${entryExtension} as the client handler.
  • The default appRoot is "./src".
  • Entry extension is .jsx when ${appRoot}/app.jsx exists; otherwise it is .tsx.

Examples

Basic usage

import { mount, StartClient } from "@solidjs/start/client";
mount(() => <StartClient />, document.getElementById("app")!);

Last updated: 5/6/26, 4:10 AMEdit this pageReport an issue with this page