pub trait FunctionProvider {
    type TProps: Properties + PartialEq<Self::TProps>;

    fn run(props: &Self::TProps) -> VNode;
}
Expand description

Trait that allows a struct to act as Function Component.

Required Associated Types

Properties for the Function Component.

Required Methods

Render the component. This function returns the Html to be rendered for the component.

Equivalent of Component::view.

Implementors