Explain the concept of prop drilling.
Question :
Explain the concept of prop drilling.
Prop drilling refers to the process of passing props through multiple layers of components in order to reach a component deep in the component tree. It can lead to code complexity and reduced maintainability. To avoid prop drilling, you can use state management libraries like Redux or context APIs like React Context.