React Hooks

React version 16.8 or higher
Cant use Hooks inside of a class component

Hooks are a new feature in react 16.8
They allow you to use React feature without writing a class
Avoid the whole confusion with this keyword

Rules of hooks
Only call hooks at the top level
Don`t call hooks inside loops, conditions, or nested function
only call hooks from React function

ss