1.0.1 • Published 7 years ago

hiccupjs v1.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

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
1.0.1

7 years ago

1.0.0

7 years ago