In this chapter, we will dive deeper into a feature of React: hooks.
In the previous pages, we covered some hooks, such as useState(), useEffect(), and useRef(). We will now recap this knowledge, dive deeper, and also discover new hooks we haven’t used yet.
Hooks are a feature introduced in React 16.8 that allows developers to reuse component logic by separating state and effects logic from display logic. Hooks are functions that allow access to state, effects, and other React features in functional components. ...