Hooks are used to make use of the state and other features without having to explicitly write a class. Hooks were added to the React version, v16.8. The stateful logic can be easily extracted from a component, along with testing and reusing it. All of this is done without making any changes to the component hierarchy.