Function create_root
pub fn create_root(f: impl FnOnce()) -> RootHandle
Expand description
Creates a new reactive root with a top-level reactive node. The returned RootHandle
can be
used to dispose
the root.
ยงExample
create_root(|| {
let signal = create_signal(123);
let child_scope = create_child_scope(move || {
// ...
});
});