hiccupjs

1.0.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i hiccupjs

Weekly Downloads

0

Version

1.0.1

License

MIT

Last publish

Collaborators

  • btfidelis