@tempots/ssr

renderSSR() function

Renders a DOM tree to a string using a fake dom implementation.

Signature:

declare function renderSSR({ html, url, selector, makeApp, makeFetch, waitFetch, }: RenderSSROptions): Promise<string>;

Parameters

Parameter

Type

Description

{ html, url, selector, makeApp, makeFetch, waitFetch, }

RenderSSROptions

Returns: Promise