1.1.0 • Published 6 years ago

@sebastbake/h v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
6 years ago

h

size downloads npm GitHub

An alternative implementation of the excellent hyperscript library. Makes use of typescript 4.1 template literal types to infer element types.

  • Supports SVG elements.
const element = h("div#someId", { onclick: handleClick }, [
  h("p.someClass", "Hello"),
  h("p.someClass", "World"),
]);

// Type inferred using typescript 4.1 beta template literals
type MyElement = typeof element; // HTMLDivElement
1.1.0

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.0.0

6 years ago