JSPM

@weddell/vdom-virtualize

2.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q70355F
  • License MIT

Virtualize any DOM node and turn it into a virtual-dom node.

Package Exports

  • @weddell/vdom-virtualize

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@weddell/vdom-virtualize) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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.