← BYTES
React.js·Intermediate·Ref: 4.2.4

What problem does "prop drilling" describe?

Have a question about this video? Mention reference 4.2.4 when you contact us.

a.Having to pass a prop down through many intermediate components that don't actually use it themselves, just to get it to a deeply nested component that does
b.A build-time error caused by misspelled prop names
c.A performance optimization technique for large prop objects
d.The automatic removal of unused props by React's compiler
Prop drilling happens when data needs to reach a deeply nested component, so every component in between has to accept and forward that prop even though it has no use for it itself -- which the Context API exists specifically to avoid.

Find this on YouTube & Instagram

Every BYTES video is tagged with its reference number and topic — search any of these on YouTube or Instagram to find this one:

#BYTES#BYTES424#Reactjs