React Hooks are special functions that let you use state and other React features without writing a class. They simplify code and enhance functionality.
The most commonly used hooks are:
- useState The useState Hook lets you add state to functional components. It returns an array with two elements: the current state and a function to update it.