This is unreleased documentation for Yew Next version.
For up-to-date documentation, see
the latest version on docs.rs
.
yew
0.21.0
In yew::
functional
yew
::
functional
Attribute Macro
hook
Copy item path
source
#[hook]
Expand description
This attribute creates a user-defined hook from a normal Rust function.