Skip to content
This repository has been archived by the owner on Jul 16, 2020. It is now read-only.

Latest commit

 

History

History
16 lines (11 loc) · 616 Bytes

README.md

File metadata and controls

16 lines (11 loc) · 616 Bytes

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.