pub fn patch<N: Into<Node>>(
root_dom_node: N,
new_vnode: &VirtualNode,
virtual_events: &mut VirtualEvents,
patches: &[Patch<'_>]
) -> Result<(), JsValue>
Expand description
Apply all of the patches to our old root node in order to create the new root node
that we desire. Also, update the VirtualEvents
with the new virtual node’s event callbacks.
This is usually used after diffing two virtual nodes.