General Rules of React Hooks
- starts with
use(both-reactand custom hooks) - component must be uppercase
- invoke inside function/component body
- don’t call hooks conditionally
setfunctions don’t update state immediately
use (both -react and custom hooks)set functions don’t update state immediately