React

Introduction to React - What does the useState() h...

22.

What does the useState() hook do in React?

It creates state variables in a functional component.

It adds event handling to a class component.

It retrieves data from an API.

It styles the component based on its state.