v0.2.5
Static HyperScript/JSX for the DOM
Attributes
Includes Deno configuration
Repository
Current version released
2 years ago
Versions
- v0.9.0Latest
- v0.8.1
- v0.8.0
- v0.7.1
- v0.7.1-beta.2
- v0.6.0
- v0.6.0-beta1
- v0.6.0.beta3
- v0.6.0.beta2
- v0.6.0.beta1
- v0.5.0
- v0.5.0.beta8
- v0.5.0.beta7
- v0.5.0.beta6
- v0.5.0.beta5
- v0.5.0.beta4
- v0.5.0.beta3
- v0.5.0.beta2
- v0.5.0.beta1
- v0.4.0
- v0.3.6
- v0.3.5
- v0.3.4
- v0.3.3
- v0.3.2
- v0.3.1
- v0.3.0
- v0.2.9
- v0.2.8
- v0.2.7
- v0.2.6
- v0.2.5
- v0.2.4
- v0.2.3
- v0.2.1
- v0.2.0
- v0.1.3
- v0.1.2
- v0.1.1
Static Configurable Hyperscript
This is a very simple implementation of hyperscript with a few useful properties for modern environments:
- exposed as ES module
- clean, modern JavaScript with types and documentation
- test suite
- can be instantiated with different DOM implementations like deno_dom or xmldom
It provides a HyperScript-compatible h function, along with React-compatible
createElement. It also generally works fine with XML, not just HTML.
To use in the browser:
import { h } from 'https://deno.land/x/hyperstatic/hyperstatic.ts';
let elt = h('a.link', {href: 'https://example.com'}, 'Example');To use in Deno:
import { Document } from 'https://deno.land/x/deno_dom/deno-dom-wasm.ts';
import { hyperstatic } from 'https://deno.land/x/hyperstatic/hyperstatic.js';
const h = hyperstatic({
document: new Document()
});
let elt = h('a.link', {href: 'https://example.com'}, 'Example');