Govur University Logo
--> --> --> -->
...

What is the core advantage of using `useContext` in React compared to prop drilling when managing deeply nested component state?



The core advantage of using `useContext` over prop drilling is the elimination of passing props through intermediate components that don't need them. Prop drilling occurs when a component deep down in the component tree needs a prop that is available only at a higher level. This forces all the intermediate components to receive the prop and pass it down, even ....

Log in to view the answer



Community Answers

Sign in to open profiles and full community answers.

No community answers yet. Be the first to submit one.

Redundant Elements