{
  "id": "be30f40fefd4db9bf119432a",
  "source": "solid:signals",
  "type": "github-document",
  "title": "entry-client",
  "content": "---\ntitle: entry-client.tsx\nuse_cases: \u003e-\n  browser initialization, client-only code, service workers, mounting app, spa\n  setup\ntags:\n  - entry\n  - client\n  - browser\n  - initialization\n  - mount\n  - startup\nversion: '1.0'\ndescription: \u003e-\n  Configure browser entry point for SolidStart apps. Set up client-side\n  initialization, mount components, and register service workers.\n---\n\n`entry-client.tsx` is where an application starts in the browser.\nIt does this by passing [`\u003cStartClient\u003e`](/solid-start/reference/client/start-client) and a DOM Element (the mounting point), to the [`mount`](/solid-start/reference/client/mount) function.\n\n```tsx\nimport { mount, StartClient } from \"@solidjs/start/client\";\n\nmount(() =\u003e \u003cStartClient /\u003e, document.getElementById(\"app\")!);\n```\n\nThis file is an ideal place to run any client specific code that is needed on startup, such as registering service workers.\nThis is important if you are performing client-only rendering or using other modes of server-side rendering.",
  "url": "https://github.com/solidjs/solid-docs/blob/HEAD/src/routes/solid-start/reference/entrypoints/entry-client.mdx",
  "metadata": {
    "path": "src/routes/solid-start/reference/entrypoints/entry-client.mdx",
    "repo": "solidjs/solid-docs",
    "repo_url": "https://github.com/solidjs/solid-docs.git",
    "size": 1011,
    "source_type": "github"
  },
  "hash": "0f034e27f1ff84f97ed8e43806868d52d4cda268e2d038b5cea227ff42e2e084",
  "timestamp": "2026-02-23T11:43:00.194891466+01:00"
}