Function from_fn_owned

Source
pub fn from_fn_owned<P>(
    key: impl Hash,
    props: P,
    comp: impl Fn(P) -> Element + 'static,
) -> Element
where P: PartialEq + Clone + 'static,
Expand description

Create a component instance from a given Key, Props and Render function. Similar to from_fn but instead gives owned props.