1.0.1 • Published 7 years ago
hiccupjs v1.0.1
Hiccup.js
Small lib for that allows hml style element creation
Installation
$ npm i hiccupjs
Example usage
import r from 'hiccupjs'
const form = ['div', {},
['label', {for: 'abc'}, 'type something: '],
['input', {type: 'text', id: 'abc'}, ''],
['button', { click }, 'send']
]
// renders the form
const formHtmlElment = r(document.getElementById('app'), form)
Todo
- Add tests
- Improve documentation