@skatejs/element-hyperhtml
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

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>

Package Sidebar

Install

npm i @skatejs/element-hyperhtml

Weekly Downloads

2

Version

0.0.1

License

MIT

Unpacked Size

4.02 kB

Total Files

6

Last publish

Collaborators

  • treshugart