Stateful API + Signal-bound modifiers demo.
Two complementary examples:
-
Stateful counter / event display — the original demo of
stateful::<S>(),ctx.use_signal(),ctx.use_animated_value()(declarative spring animations + scoped signals). -
Signal-bound modifiers (reactive-architecture-v2 Phase 2) —
.bg(&state)/.opacity(&state)/.rounded(&state)/.border_color(&state)/.w(&state)patch a singleRenderProps(or taffyStyle) cell onstate.set(...)without aStatefulwrap or closure re-run.
Tip: Some demos are best viewed in a full browser window. Click “Open in a new tab” below for the full experience.