what are Hooks? Hooks are a new addition in React 16.8, They let you use state and other React features in a Functional Component without the need of a Class based component. So, basically, Hooks are the functions which “hook into” React state and lifecycle features from function components. When to use Hooks? If you write a…