Quiz: State & Events
Test what you learned in this lesson before moving on.
Lesson Quiz
Pass with 80% to complete this lesson.
1. Why should you use the functional form of setState (e.g., setCount(prev => prev + 1))?
2. What makes an input 'controlled' in React?
3. How do you correctly update an object in state?
4. What does 'lifting state up' mean?