mirror of
https://github.com/Dvorinka/Devour.git
synced 2026-06-03 20:13:03 +00:00
update
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"id": "84ee1b1b3bd0ac9ab72bcaee",
|
||||
"source": "solid:signals",
|
||||
"type": "github-document",
|
||||
"title": "mount",
|
||||
"content": "---\ntitle: mount\nuse_cases: \u003e-\n app initialization, entry point setup, bootstrapping, client rendering,\n hydration control\ntags:\n - mount\n - hydration\n - rendering\n - initialization\n - entry-client\nversion: '1.0'\ndescription: \u003e-\n Bootstrap your SolidStart application with mount. Automatically handles\n hydration for SSR or client-only rendering modes.\n---\n\n`mount` is a method that calls either [`hydrate`](/reference/rendering/hydrate) (server rendering) or [`render`](/reference/rendering/render) (client rendering) depending on the configuration.\nIt is used in [`entry-client.tsx`](/solid-start/reference/entrypoints/entry-client) to bootstrap an application.\n\n```tsx\nimport { mount, StartClient } from \"@solidjs/start/client\";\n\nmount(() =\u003e \u003cStartClient /\u003e, document.getElementById(\"app\")!);\n```\n\nIf you set `{ ssr: false }` in the [`defineConfig`](/solid-start/reference/config/define-config), effectively deactivating hydration, then `mount` becomes the same as [`render`](/reference/rendering/render).\n\n## Parameters\n\n| Prop | type | description |\n| ---- | ----------------- | ------------------------------------------- |\n| fn | () =\u003e JSX.Element | Function that returns the application code. |\n| el | MountableElement | DOM Element to mount the application to |",
|
||||
"url": "https://github.com/solidjs/solid-docs/blob/HEAD/src/routes/solid-start/reference/client/mount.mdx",
|
||||
"metadata": {
|
||||
"path": "src/routes/solid-start/reference/client/mount.mdx",
|
||||
"repo": "solidjs/solid-docs",
|
||||
"repo_url": "https://github.com/solidjs/solid-docs.git",
|
||||
"size": 1335,
|
||||
"source_type": "github"
|
||||
},
|
||||
"hash": "3512424e27a9818e1e72160d470e879929ba370c9806a0a8f27a56fee5ca9e89",
|
||||
"timestamp": "2026-02-23T11:43:00.194537741+01:00"
|
||||
}
|
||||
Reference in New Issue
Block a user