Struct yew::functional::FunctionComponent [−][src]
pub struct FunctionComponent<T: FunctionProvider + 'static> { /* fields omitted */ }
Expand description
Wrapper that allows a struct implementing FunctionProvider
to be consumed as a component.
Trait Implementations
Messages are used to make Components dynamic and interactive. Simple
Component’s can declare their Message type to be ()
. Complex Component’s
commonly use an enum to declare multiple Message types. Read more
type Properties = T::TProps
type Properties = T::TProps
The Component’s properties. Read more
Called when a new message is sent to the component via it’s scope. Read more
Components define their visual layout using a JSX-style syntax through the use of the
html!
procedural macro. The full guide to using the macro can be found in Yew’s
documentation. Read more
The rendered
method is called after each time a Component is rendered but
before the browser updates the page. Read more