Skip to main content
React Essentials·Lesson 4 Quiz

Quiz: Essential Hooks

Test what you learned in this lesson before moving on.

Lesson Quiz

Pass with 80% to complete this lesson.

1. When does a useEffect with an empty dependency array run?

2. What is the primary purpose of the cleanup function returned from useEffect?

3. Why does updating a useRef value NOT cause a re-render?

4. What naming convention must custom hooks follow?