pH200 / reactive-vdom-to-html

Turn Virtual DOM nodes into HTML

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:MIT License


Languages

Language:JavaScript 100.0%