I was asked this question in a react interview and was not able to answer it. What is exactly prop drilling?
>Solution :
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.