State Management · Junior · Question 17 of 75
Is passing props down 2–3 levels a problem by itself?
- ✓Correct answer: Usually not: explicit props make data flow easy to trace
- 2Yes: any prop passed more than one level must be moved to Context
- 3Yes: React shows a warning for props passed through several levels
Explanation
Explicit props are clear and easy to refactor. Prop drilling becomes a pain when data goes through many layers or many components need it - then composition, Context or a store make sense.