snabbdom-decontextify
TypeScript icon, indicating that this package has built-in type declarations

4.0.0 • Public • Published

snabbdom-decontextify

Build Status codecov

decontextify(vnode: VNode) => VNode

Returns a clone of the provided VNode tree, that has no context.

A VNode that has no context (decontextified) has only

  • sel; only the tagName part.
  • key
  • text
  • children and the same for the children, recursively.

See test for example.

Package Sidebar

Install

npm i snabbdom-decontextify

Weekly Downloads

0

Version

4.0.0

License

ISC

Unpacked Size

5.24 kB

Total Files

7

Last publish

Collaborators

  • mightyiam