virtual-elements

0.0.2 • Public • Published

Use virtual-hyperscript with individual elements:

{divbuttonh1} = require 'virtual-elements'
 
vtree = (div {},
  (h1 {}'alôu')
  (button {},
    'beleza'
  )
) 

Good for using with Coffeescript, as you would do with the lispy-React pattern exampled in http://html2react.alhur.es/.


Warning: this requires virtual-dom, but it is not set as a dependency so you can render its pool of incompatibility yourself. Please install it manually.

Package Sidebar

Install

npm i virtual-elements

Weekly Downloads

0

Version

0.0.2

License

MIT

Last publish

Collaborators

  • fiatjaf