@skatejs/element-lit-html
v0.0.1
Published
A SkateJS renderer for LitHTML.
Downloads
3
Maintainers
Readme
element-lit-html
SkateJS renderer for LitHTML.
Install
npm i @skatejs/element-lit-html lit-html
Usage
import Element, { h } from '@skatejs/element-lit-html';
class Hello extends Element {
render() {
return h`Hello, <slot></slot>!`;
}
}
customElements.define('x-hello', Hello);
<x-hello>World</x-hello>