What are React Hooks?

Hooks are a new addition in React 16.8. Hooks allows the users to use state and other React features without necessarily writing a class. With the help of Hooks, users can extract stateful logic from a component so that it can be tested independently and reused. Hooks allow users to reuse stateful logic without changing the component hierarchy. This makes it easier to share Hooks among many components or with the community.