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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.2
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.2
    1
  • 0.0.1
    0
  • 0.0.0
    0

Package Sidebar

Install

npm i virtual-elements

Weekly Downloads

1

Version

0.0.2

License

MIT

Last publish

Collaborators

  • fiatjaf