0.0.2 • Published 9 years ago

virtual-elements v0.0.2

Weekly downloads
2
License
MIT
Repository
-
Last release
9 years ago

Use virtual-hyperscript with individual elements:

{div, button, h1} = 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.