Introduction To React
Hooks are a new addition in React which came alongside the version 16.8 of react. They allow you to use and update state and other React features such as effect without writing a class as shown in the image above.
Below depicts an example of using state
Benefits Of Using Hooks
In using Hooks, you can extract data from a component so as to make your code more dynamic. They allow you to reuse stateful logic without changing the hierarchy of your components. React is relatively a new library but definitely makes the lives of software developers much easier. I 100% recommend to all relevant parties to learn it.