← @mortar-kit/core

ClientScriptsfunction

import { ClientScripts } from '@mortar-kit/core'

function ClientScripts(props: { src?: string }): Element

The hydration bootstrap and the client entry script, only on pages that hydrate. Put it in the document's <head>. src is the client entry as written in your source; the vite plugin rewrites it to the built file.

Parameters

props: { src?: string }

Returns

Element

Example

<head>
  <meta charset="utf-8" />
  <ClientScripts />
</head>