elm-html
inspired helpers for writing hyperscript or virtual-hyperscript.
// instead of writing
h('div', properties, children)
// write
div(properties, children)
Work in progress! See the supported tagNames
list here: src/index.js.
The helpers are hyperscript-agnostic, which means there is no dependencies. Instead, you need to pass the implementation when you import the helpers.
const h = require('hyperscript'); // or 'virtual-hyperscript'
const hh = require('hyperscript-helpers')(h);
// with ES6 destructuring
const { div, span, h1 } = require('hyperscript-helpers')(h);
Brought to you by ohanhi.
License: MIT