pub unsafe fn create_element_fn( element_type: &Closure<dyn Fn(Object) -> Element>, props: &JsValue, children: &Array, ) -> Element
the function in element_type closure should live longer enough
element_type