StartClient
StartClient is a component that renders the generated app inside the client error boundary.
Import
import { StartClient } from "@solidjs/start/client";Type
function StartClient(): JSX.Element;Parameters
StartClient takes no arguments.
Return value
- Type:
JSX.Element
Returns the client app element.
Behavior
- Renders the
#start/appmodule. - Wraps the app in the shared
ErrorBoundary.
Examples
Basic usage
import { mount, StartClient } from "@solidjs/start/client";
mount(() => <StartClient />, document.getElementById("app")!);