pub trait FunctionProvider {
    type Properties: Properties + PartialEq;

    fn run(ctx: &mut HookContext, props: &Self::Properties) -> HtmlResult;
}
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§