React

Introduction to React - Purpose of Useeffect() hoo...

24.

What is the purpose of the useEffect() hook in React?

It is used to fetch data from an API.

It is used to handle form submissions.

It is used to update the state of a component.

It is used to perform side effects in functional components.