Further reading
Hooks are a relatively recent addition to React. Traditionally, React used classes for building components with state. For an overview of how hooks work, take a look at React’s own comprehensive documentation at the following link:
https://reactjs.org/docs/hooks-overview.html.