Virtualize a DOM node
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test
.zuul.yml
LICENSE.txt
README.md
index.js
package.json
vcomment.js

README.md

vdom-virtualize

Sauce Test Status

New in v2.0: removed support for virtualize.fromHTML -- doing this right and supporting all platforms is a job for another library.

New in v1.0: vdom-virtualize now supports comments and does now use peerDependencies to depend on virtual-dom.

API

virtualize(node:DOMNode)

  • node {DOMNode}

  • returns {VNode}: A virtual-dom tree

virtualize.fromHTML(html:String)

  • html {String}

  • returns {VNode}: A virtual-dom tree

Turn a DOMNode into a virtual-dom node.