For global state management in a React application, one can use the ________ API.

  • Component
  • Context
  • Render
  • State
In React, the "Context" API is used for global state management. It allows you to pass data (state) through the component tree without having to pass props manually at each level. Context provides a way to share data between components at different levels of the hierarchy, making it suitable for global state management in React applications.
Add your answer
Loading...

Leave a comment

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