Function percy_vdom::patch[][src]

pub fn patch<N: Into<Node>>(
    root_node: N,
    patches: &Vec<Patch<'_>>
) -> Result<HashMap<u32, Vec<DynClosure>>, JsValue>
Expand description

Apply all of the patches to our old root node in order to create the new root node that we desire. This is usually used after diffing two virtual nodes.