In React, data flows from parent to child via props.
When you need to pass data through multiple nested components, it can lead to prop drilling — passing props down layers that don’t use them, just to reach the component that needs them.
Prop drilling can make your code harder to maintain, read, and scale.
In this tutorial, you’ll learn:
- What prop drilling is
- Why it’s a problem
- Solutions including Context API and custom hooks