In 2018, at the React Conference “Hooks” was officially introduced to React. Hooks arrived as a savior for developers who were struggling in maintaining hundreds of states for hundreds of components.
They let you use state and other React features without writing a class. Now, you can kick out classes