Expand description
This file contains interactions with web_sys
.
Functions
Recursively remove all children.
Similar to attach_el_and_children
, but without attaching the elemnt. Useful for
patching, where we want to insert the element at a specific place.
Attaches the element, and all children, recursively. Only run this when creating a fresh vdom node, since it performs a rerender of the el and all children; eg a potentially-expensive op. This is where rendering occurs.
Similar to attach_el_and_children
, but for text nodes
Create a vdom node from a web_sys::Node
. Used in creating elements from html
and markdown strings. Includes children, recursively added.