← React Intermediate Questions - Set 1 Q9

What is prop drilling and how can you avoid it?

React Intermediate Questions - Set 1

Example

<A user={u}><B user={u}><C user={u} /></B></A>   // drilling
// fix: context, or pass the component itself as a child

What to notice

← Back to the question list