arrow_backBACK TO DRILLS
Blue Beltstate-snapshots

Functional updater accumulates queued updates

“A counter starts at 0. Inside one click handler, React runs: setNumber(n => n + 1); setNumber(n => n + 1); setNumber(n => n + 1); What will the counter display after the next render?”

BugDojo
BlogFAQ

© 2026. Carved in code.