preact-render-to-string
Version:
Render JSX to an HTML string, with support for Preact components.
14 lines (11 loc) • 299 B
TypeScript
import { VNode } from 'preact';
interface Options {
jsx?: boolean;
xml?: boolean;
functions?: boolean;
functionNames?: boolean;
skipFalseAttributes?: boolean;
pretty?: boolean | string;
}
export function render(vnode: VNode, context?: any, options?: Options): string;
export default render;