@mercury-fx/render-to-string
v3.0.0
Published
Mercury's server renderer: renderToString for @mercury-fx/hyperscript, the package name for its ./server entry. ESM only.
Readme
@mercury-fx/render-to-string
Mercury's server renderer: renderToString (and renderToStringAsync, render,
renderToStaticMarkup) for @mercury-fx/hyperscript components.
import { renderToString } from '@mercury-fx/render-to-string';
renderToString(<App />);This package is the published name for @mercury-fx/hyperscript/server, where the one renderer
lives. That renderer is preact-render-to-string, vendored and built with the core's own mangle
map, so it renders the core's vnodes in source and in the build. ESM only.
Not exported yet: ./jsx (pretty output), ./stream and ./stream-node. Each comes with a
measured rung of its own.
MIT. Upstream: https://github.com/preactjs/preact-render-to-string (Jason Miller and contributors).
