mount
Edit this pagemount is a method that calls either hydrate (server rendering) or render (client rendering) depending on the configuration.
It is used in entry-client.tsx to bootstrap an application.
import { mount, StartClient } from "@solidjs/start/client";
mount(() => <StartClient />, document.getElementById("app")!);If you set { ssr: false } in the defineConfig, effectively deactivating hydration, then mount becomes the same as render.
Parameters
| Prop | type | description |
|---|---|---|
| fn | () => JSX.Element | Function that returns the application code. |
| el | MountableElement | DOM Element to mount the application to |