Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Stateful API + Signal-bound modifiers demo.

Two complementary examples:

  1. Stateful counter / event display — the original demo of stateful::<S>(), ctx.use_signal(), ctx.use_animated_value() (declarative spring animations + scoped signals).

  2. Signal-bound modifiers (reactive-architecture-v2 Phase 2) — .bg(&state) / .opacity(&state) / .rounded(&state) / .border_color(&state) / .w(&state) patch a single RenderProps (or taffy Style) cell on state.set(...) without a Stateful wrap 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.

Open in a new tab · View source on GitHub