Type Definition DynClosure
virtual_dom_rs
type DynClosure = Rc<dyn AsRef<JsValue> + 'static>;
Box<dyn AsRef>> is our js_sys::Closure. Stored this way to allow us to store any Closure regardless of the arguments.