Trait yew::functional::FunctionProvider
source · 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§
sourcetype Properties: Properties + PartialEq
type Properties: Properties + PartialEq
Properties for the Function Component.
Required Methods§
sourcefn run(ctx: &mut HookContext, props: &Self::Properties) -> HtmlResult
fn run(ctx: &mut HookContext, props: &Self::Properties) -> HtmlResult
Render the component. This function returns the Html
to be rendered for the
component.
Equivalent of Component::view
.
Implementors§
source§impl FunctionProvider for Suspense
Available on crate features csr
or ssr
only.
impl FunctionProvider for Suspense
Available on crate features
csr
or ssr
only.