reactive-vdom-to-html

Turn virtual-dom nodes into HTML observable

Usage no npm install needed!

<script type="module">
  import reactiveVdomToHtml from 'https://cdn.skypack.dev/reactive-vdom-to-html';
</script>

README

reactive-vdom-to-html

A fork of vdom-to-html.

Turn virtual-dom nodes into Rx observable of HTML

Installation

npm install --save reactive-vdom-to-html

Usage

var VNode = require('vtree/vnode');
var toHTML = require('vdom-to-html');

toHTML(new VNode('input', { className: 'name', type: 'text' }))
  .subscribe(function (html) {
    console.log(html);
    // => '<input class="name" type="text">'
  });