pub fn destroy(selector: &str)Expand description
Destroys the application mounted at the given CSS selector.
Removes all child nodes from the target element, cleans up all framework-global state (handlers, signal update registry, delegated events), resets scheduling state, and clears injected CSS classes.
§Arguments
&str- A CSS selector string identifying the root element to unmount.
§Panics
Panics if no global window or document exists.