Function from_fn

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

Create a component instance from a given Key, Props and Render function.