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