Hooks are a new addition in React 16.8. They let you use state and other React features without writing a class.
With Hooks, we can extract stateful logic from a component so it can be tested independently and reused. Hooks allow us to reuse stateful logic without changing our component hierarchy. This makes it easy to share Hooks among many components or with the community.