JavaScript: React Hooks
Hooks are how modern React components manage state and side effects — and they come with rules that are easy to break without realizing it. This quiz tests whether you actually understand useState, useEffect, and the hooks that build on them.
Questions cover the useState and useEffect dependency array, custom hooks, useContext, useRef, useReducer, and the performance hooks — plus the rules of hooks that keep your components predictable.
Ever had a useEffect fire more (or less) often than expected? This quiz gets at exactly why.
Start quiz →
Opens in a new tab on Cletica
Sample questions3 of 14 shown
Q1
What is the primary purpose of the useState hook in React?
Q2
What does the useEffect hook do?
Q3
Which of the following are valid ways to use the dependency array in useEffect? (Select all that apply)
What This Quiz Covers
- useState and the state setter function
- useEffect and its dependency array
- Writing custom hooks
- useContext for avoiding prop drilling
- useRef, useReducer, and performance hooks
- The rules of hooks
Cletica
Want to create your own quiz?
Build surveys and quizzes, share with anyone, collect responses — free to start.
Try Cletica for free →