
React Hooks: useState and useEffect
NIRUPASHREES2021.10.11
- • React 16.8.0 introduced Hooks enabling state management in functional components
- • useState manages state variables; useEffect handles lifecycle methods like componentDidMount
- • Functional components reduce code size and improve app performance vs class components