Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

What exactly is prop drilling in React?

I was asked this question in a react interview and was not able to answer it. What is exactly prop drilling?

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

Props drilling is the process of passing data or props from a parent component to a child component. But, in between, other components have access to the data or props as we are passing it down the chain. This would result in unnecessary exchange of data to the component which don’t really need it. To avoid this we can use possible solutions like React context API, Redux etc.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading