pub fn boot<Root>(
new_parent: impl Into<Node>,
root: impl FnMut() -> Root + 'static
Root: Child + 'static,
The "boot sequence" for a moxie-dom instance creates a
crate::embed::DomLoop with the provided arguments and begins scheduling
its execution with
requestAnimationFrame on state changes.
If you need to schedule your root function more or less frequently than when state variables are updated, see the embed module for granular control over scheduling.
In terms of the embed module's APIs, this function constructs a new
crate::embed::DomLoop and begins scheduling it with an
AnimationFrameScheduler which requests an
animation frame only when there are updates to state variables.