Function create_element_fn

Source
pub unsafe 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