State Management · Junior · Question 71 of 75
A small app has a theme switch and a logged-in user. Which state tools are usually enough?
- ✓Correct answer:
useState/useReducerplus Context for the few app-wide values - 2Redux Toolkit, Zustand and TanStack Query together
- 3A custom store with WebSockets
Explanation
Start with built-in tools. Add a store when many components update shared state often, and a query library when server data needs caching.