For this tutorial, you should have a fair understanding of hooks. Still, before we begin, I’ll briefly discuss what they are and the hooks we’ll be using in this article.
According to the React Docs:
“Hooks are a new addition in React 16.8. They let you use state and other React features without writing a class.” That is basically what a React hook is. It allows us to use state, refs and other React features in our functional components.
https://www.smashingmagazine.com/2020/01/introduction-react-context-api/