This is a library for managing lifetimes of data associated with DOM elements in WASM.
This manages a globally owned tree of ScopeElement
which is proxied onto the actual DOM. ScopedElement
can have attached data via the e.drop(data)
method, which will be destroyed when the element is dropped (removed from the tree, if no other references exist).
Trivial example:
```
pub fn main() { setroot(el("button").inittext("Click me baby").initlisten("click", || console_dbg!("Clicked"))); } ```