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

pub fn hydrate(template: impl FnOnce() -> Template<DomNode>)
Expand description

Render a Template under a parent node by reusing existing nodes (client side hydration). Alias for hydrate_to with parent being the <body> tag.

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