In React, ___________ is used to manage component-level state.

  • Redux
  • useState
  • Context API
  • Lifecycle Methods
useState is a React hook that allows functional components to manage state locally. It simplifies state management within a component without the need for class-based components or external libraries like Redux. The other options are also valid for state management, but useState is specifically designed for component-level state management and is a fundamental part of React's modern approach to state handling.
Add your answer
Loading...

Leave a comment

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