mount

mount is Solid's hydrate function re-exported for the SolidStart client entry.


Import

import { mount } from "@solidjs/start/client";

Type

function mount(
fn: () => JSX.Element,
el: MountableElement
): (() => void) | undefined;

Parameters

fn

  • Type: () => JSX.Element
  • Required: Yes

Function that returns the client app element.

el

  • Type: MountableElement
  • Required: Yes

Element used as the hydration root.


Return value

  • Type: (() => void) | undefined

Returns the value from hydrate.


Behavior

  • mount and hydrate are the same function.
  • The standard entry hydrates <StartClient /> into the document's #app element.

Examples

Basic usage

import { mount, StartClient } from "@solidjs/start/client";
mount(() => <StartClient />, document.getElementById("app")!);

Last updated: 7/27/26, 1:53 AMEdit this pageReport an issue with this page