2.0.0 • Published 9 years ago

reactive-vdom-to-html v2.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

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">'
  });