Function sycamore::generic_node::dom_node::hydrate_to[][src]

pub fn hydrate_to(template: impl FnOnce() -> Template<DomNode>, parent: &Node)
Expand description

Render a Template under a parent node by reusing existing nodes (client side hydration). For rendering under the <body> tag, use hydrate_to instead.

For rendering without hydration, use render instead.

TODO: This method currently deletes existing nodes from DOM and reinserts new created nodes. This will be fixed in a later release.

This API requires the following crate features to be activated: dom