blob: 5ece5ddb2b8135331384a70521a0ff672ee2c7c8 (
plain) (
blame)
1
2
3
4
5
6
7
8
|
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
);
|