preact.ts
This file
Path
benchmarks/jsx/src/preact.ts
5 lines 路 215 bytes 路 TypeScript
Last changed by
Not known.
History of this fileTake it
123456import { h, Fragment } from 'preact'import { renderToString } from 'preact-render-to-string'import { buildPage } from './page'
export const render = () => renderToString(buildPage({ jsx: h, Fragment })() as any)