UNPKG

preact

Version:

Fast 3kb React-compatible Virtual DOM library.

19 lines (16 loc) 362 B
/* eslint-disable */ var renderToString; try { renderToString = dep(require('preact-render-to-string')); } catch (e) { throw Error( 'renderToString() error: missing "preact-render-to-string" dependency.' ); } function dep(obj) { return obj['default'] || obj; } module.exports = { renderToString: renderToString, renderToStaticMarkup: renderToString };