How to use the preact-render-to-string/jsx function in preact-render-to-string

To help you get started, we’ve selected a few preact-render-to-string examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github developit / preact-jsx-chai / src / index.js View on Github external
let doRender = (jsx, opts) => render(jsx, null, {
	functions: options.functions,
	functionNames: options.functionNames,
	...opts
});

preact-render-to-string

Render JSX to an HTML string, with support for Preact components.

MIT
Latest version published 10 days ago

Package Health Score

89 / 100
Full package analysis