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()usessrc/entry-client.tsxas the client entry for a TypeScript app.- A JavaScript app whose root is
src/app.jsxusessrc/entry-client.jsx.
Examples
Basic usage
import { mount, StartClient } from "@solidjs/start/client";
mount(() => <StartClient />, document.getElementById("app")!);