Less reading.
More understanding.
Five small applications. Real patterns to take back to yours.
Change something and see why it changes.
Shared state, precise updates
Change a field. See which components render—and which stay untouched. Four components share one store.
Open exampleA task list that composes
Filter tasks, add an action, and share derived counts through reusable hooks. The filter lives outside the store.
Open exampleEvery request state, covered
Walk through loading, failure and retry with an explicit state for each outcome, and an action that ignores late answers from older requests.
Open examplePreferences that stay
Save a preference, restore it, and keep session-only values out of storage. Validate what comes back and hydrate without a mismatch.
Open exampleShared logic. Separate state.
Edit independent notes with the same component and a store per provider. Add and remove notes, and see that each one keeps its own state.
Open exampleLearn the model behind the examples.
A short path from a shared store to a precise subscription.