← React Beginner Questions - Set 7 Q64

What is prop drilling?

React Beginner Questions - Set 7

Example

<App user={user}>
  <Layout user={user}>
    <Sidebar user={user}>
      <Avatar user={user} />   {/* three levels of pass-through */}
    </Sidebar>
  </Layout>
</App>

What to notice

← Back to the question list