Which of the following best describes the concept of "prop drilling"?

  • Managing component state using props.
  • Passing data directly between sibling components.
  • Passing data from parent to child components.
  • Using props to style React components.
"Prop drilling" refers to the practice of passing data directly between sibling components, bypassing the parent component. This can lead to a complex chain of prop-passing, making the code harder to maintain. It is not about passing data from parent to child components or managing component state using props. Styling with props is a different concept altogether.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *