State Management · Junior · Question 14 of 75
What is prop drilling?
- ✓Correct answer: Passing props through intermediate components that don't use them
- 2Validating props at runtime with PropTypes
- 3Copying props into local state with
useEffect
Explanation
If App has a user that a deeply nested Avatar needs, every component in between must accept and forward user. It's verbose and couples the intermediate components to data they don't care about.