hyperapp-html
Html helpers for hyperapp h
.
Note
This library is builded using meta programing through template engine to allow the use of tree shaking and a better optimisation.
Installation
Using npm:
npm i hyperapp-html
Then setup a build pipeline and import it.
import div h1 from "hyperapp-html"
Using a CDN:
Then access the all hmtl tags from hyperappHtml
in the global scope as hyperappHtml.div, hyperappHtml.h1, etc...
Usage
const vnode =
Example
API
Tags
tagname
Type: (props: object, children: vnode[]) => vnode
Call h
to return a vnode according to the tag name.
const vnode =
License
hyperapp-html is MIT licensed. See LICENSE.