@skatejs/element-hyperhtml
v0.0.1
Published
A SkateJS renderer for HyperHTML.
Downloads
3
Maintainers
Readme
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>