Trait yew::functional::FunctionProvider[][src]

pub trait FunctionProvider {
    type TProps: Properties + PartialEq;
    fn run(props: &Self::TProps) -> Html;
}
Expand description

Trait that allows a struct to act as Function Component.

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