React

Introduction to React - What is the useState() hoo...

25.

What is the useState() hook used for in React?

To create class components

To manage state within functional components

To handle side effects within functional components

To access React's lifecycle methods within functional components