React · Junior · Question 57 of 75
When does onChange fire on a text input in React?
- ✓Correct answer: On every keystroke (like the DOM
inputevent) - 2Only when the input loses focus
- 3Only when the form is submitted
Explanation
React normalizes onChange to fire on each change, unlike the native change event that waits for blur. That makes controlled inputs possible.