pub fn create_element_fn(
    element_type: &Closure<dyn Fn(Object) -> Element>,
    props: &JsValue,
    children: &Array
) -> Element
Expand description

Safety

the function in element_type closure should live longer enough