The Context API provides a way to pass data through the component tree without having to pass props down manually at every level using the ________ and ________ mechanism.

  • Provider and Consumer
  • State and Props
  • Render Props and HOC
  • Redux and MobX
The Context API in React provides the Provider and Consumer components, which allow data to be passed through the component tree without the need to manually pass props down at every level. This mechanism simplifies state management in complex React applications. While the other options are related to React state management, they do not specifically describe the Context API mechanism.
Add your answer
Loading...

Leave a comment

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