1.1.0 • Published 5 years ago

@sebastbake/h v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 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

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.0.0

5 years ago