Skip to main content

Reactive

Derive Macro Reactive 

Source
#[derive(Reactive)]
{
    // Attributes available to this derive:
    #[reactive]
    #[var]
    #[computed]
}
Expand description

Derive macro for the reactive field system.

Annotate struct fields with #[reactive], #[reactive(layout)], #[reactive(watch)], or #[var] to generate getters, setters with change detection, and watcher dispatch.