Skip to content

phadej/hyperscript-helpers

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hyperscript-helpers

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.

How to use

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%