reactive-vdom-to-html

2.0.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i reactive-vdom-to-html

Weekly Downloads

0

Version

2.0.0

License

MIT

Last publish

Collaborators

  • minamo