vtree
A realtime tree diffing algorithm
Motivation
vtree
currently exists as part of virtual-dom
. It is used for imitating
diff operations between two vnode
structures that imitate the structure of
the active DOM node structure in the browser.
Example
var VNode = var diff = var leftNode = "div"var rightNode = "text" var patches = /* -> { a: lefNode, 0: vpatch<REPLACE>(rightNode) // a replace operation for the first node }*/
Installation
npm install vtree
Contributors
- Matt Esch