Real react hooks exercises — not tutorials, not theory. Write the hook, run the tests, see exactly where your mental model breaks.
Master the most-used hook in React — state that's predictable and easy to reason about.
Side effects, timers, cleanup functions, and dependency arrays — where most React bugs actually live.
Compose built-in hooks into reusable abstractions you'd actually ship in production.
Beyond useState — reducers and state machines for complex, multi-step UI.
Start with useState for basic state management, then move to useEffect for side effects like timers and data fetching. Once comfortable, custom hooks like useDebounce teach you to compose reusable logic.
useState is usually easier since it's synchronous and predictable. useEffect trips people up because of dependency arrays, cleanup functions, and timing — it takes more deliberate practice.
Yes. Hooks are the standard way to write React today, and interviewers routinely test useState, useEffect, and custom hook design — especially for mid-level and senior frontend roles.
Built-in hooks like useState and useEffect are provided by React itself. A custom hook is a function you write that combines built-in hooks into reusable logic, like useDebounce or usePrevious.
500+ react coding challenges across hooks, performance, forms, and FAANG-level problems.
Browse all problems