NETMONASTERY interview question

What is useState() in React?

Interview Answer

Anonymous

2 Feb 2024

The useState() is a built-in React Hook that allows you for having state variables in functional components. It should be used when the DOM has something that is dynamically manipulating/controlling.