virtual-elements

Wrappers for virtual-hyperscript elements.

Usage no npm install needed!

<script type="module">
  import virtualElements from 'https://cdn.skypack.dev/virtual-elements';
</script>

README

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.