Function react_sys::use_ref_optional_html_element_with
source · [−]pub fn use_ref_optional_html_element_with(
get_initial_value: &mut dyn FnMut() -> Option<HtmlElement>
) -> MutableRefObjectOptionalHtmlElement
Expand description
Closure get_initial_value
will be called immediately,
thus it is safe to use reference here.
Closure get_initial_value
will be called only once or never called