SpinTheMic
Pro

Interview practice question

Passing props through many layers

Frontend Engineering · React · Beginner

You're passing a user object through five layers of components that don't use it. How would you improve this?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Prop drilling.
  • Composition: pass components as children.
  • Context for widely needed data.
  • State library for complex cases.
  • Some drilling is fine.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics