pub fn from_fn<P>( key: impl Hash, props: P, comp: impl Fn(&P) -> Element + 'static, ) -> Elementwhere P: PartialEq + 'static,
Create a component instance from a given Key, Props and Render function.
Key
Props
Render