preact-hyperscript-h
v0.1.1
Published
Shortcut to preact-hyperscript's createElement
Downloads
10
Readme
preact-hyperscript-h
Shortcuts to preact-hyperscript's createElement, and other methods.
Install
npm install preact-hyperscript
npm install preact-hyperscript-h
Usage
// Instead of:
// import {div, createElement as h} from 'preact-hyperscript'
import h from 'preact-hyperscript-h'
h(SomeComponent)
h('div')
h.div()