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
defineConfiguses${appRoot}/entry-client${entryExtension}as the client handler.- The default
appRootis"./src". - Entry extension is
.jsxwhen${appRoot}/app.jsxexists; otherwise it is.tsx.
Examples
Basic usage
import { mount, StartClient } from "@solidjs/start/client";
mount(() => <StartClient />, document.getElementById("app")!);