useState() is a React hook. Hooks make it possible to use state and mutability inside function components. It basically lets you turn your non-stateful.

SITE FOR WEB DEVELOPERS.
useState() is a React hook. Hooks make it possible to use state and mutability inside function components. It basically lets you turn your non-stateful.