Level 1 · Apprentice0 XP
useState, context, reducers, Zustand or Redux Toolkit: pick by need, not fashion.
Step 1 / 5
ProblemA team puts form inputs, modals, server data and the theme into one global store. Every keystroke re-renders half the app and nobody knows who changes what.
← → step
Before this: Server state with TanStack Query
🛠️ Your turn
Reading is not the skill, doing is. Try for ten minutes before you open the hint. Getting stuck first is what makes the solution stick.
1.Take a React app you know (or the product list page of a small shop: filters, a product list, a cart, a search box). List every piece of state and classify it as server, URL, form, local or shared. Move filters into the URL, server data into a query cache, and keep a Zustand store only for the cart.