append_dom

Function append_dom 

Source
pub fn append_dom(parent: &Node, dom: Dom) -> DomHandle
Expand description

Appends a Dom into the real DOM.

When the DomHandle is discarded using handle.discard() it will remove the Dom from the DOM and it will clean up the internal Dom state.

If you never call handle.discard() then it will leak memory forever. This is normally what you want for a top-level Dom.