Frontend Developer
Hooks questions
27 questions on Hooks for frontend developers, easiest first.
Easy 7
Medium 12
- When to reach for useReducermedium
- State becomes undefined after an actionmedium
- A hook inside an ifmedium
- Two components using one custom hookmedium
- Unique ids for a reusable fieldmedium
- An effect that re-runs on every rendermedium
- useMemo that recomputes every timemedium
- useCallback that changes nothingmedium
- Exposing only focus() from a componentmedium
- A tab switch that freezes the pagemedium
- dispatch in a dependency arraymedium
- Sharing logic: hook or HOCmedium