React: What Are Hooks and Why Should You Use Them?

Hooks in React allow for state and other React features to be used in functional components. Why is this important? Let’s first cover the difference between a functional component and a class component. Functional components are as the name suggests, for functions. Class components are responsible for rendering the page and keeping up to date with any interaction. Before hooks came along, if you wanted…