My Study Notes for React 16.8+ version
Contents:
- useState Hook
1. useState Hook
- This hook is used to use states in functional components
- Updating the state replaces the existing set data, hence need destructring
useState
can be called as many times as required inside a functional component