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

  • solidStart() uses src/entry-client.tsx as the client entry for a TypeScript app.
  • A JavaScript app whose root is src/app.jsx uses src/entry-client.jsx.

Examples

Basic usage

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

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