Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 990 Bytes

File metadata and controls

21 lines (15 loc) · 990 Bytes
title mount

mount 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