element-hyperhtml
SkateJS renderer for HyperHTML.
Install
npm install @skatejs/element-hyperhtml hyperhtml
Usage
import Element from '@skatejs/element-hyperhtml';
class Hello extends Element {
render(h) {
return h`Hello, <slot />!`;
}
}
customElements.define('x-hello', Hello);
<x-hello>World</x-hello>