blob: 85c18c76c9d5de53385f67b308ab267c0cba34bb (
plain) (
blame)
1
2
3
4
|
import { h, render } from 'preact';
import StaticHtml from './static-html.js';
export default (element) => (Component, props, children) => render(h(Component, props, children != null ? h(StaticHtml, { value: children }) : children), element);
|