useState is a built-in hook provided by React that enables functional components to have stateful logic. Prior to the introduction of hooks, state management was primarily handled by class components.