Skip to content

pH200/reactive-vdom-to-html

 
 

Repository files navigation

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

About

Turn Virtual DOM nodes into HTML

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%