In functional components, to manage local state you can use the ________ hook.

  • useContext
  • useEffect
  • useRef
  • useState
In functional components in React, you can manage local state using the useState hook. This hook allows you to add state variables to your functional components, providing a way to manage and update component-specific data without using class components and this.state.
Add your answer
Loading...

Leave a comment

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