arrow_backBACK TO DRILLS
Blue Beltuseeffect
Functional updater removes dependency need
“A counter Effect uses setInterval to increment state every second. Why does switching from setCount(count + 1) to setCount(c => c + 1) allow removing count from the dependency array?”