Hooks let you use state and other React features without writing a class. The most common hooks are useState and useEffect.
useEffect allows you to perform side effects in function components, such as data fetching or subscriptions.