arrow_backBACK TO DRILLS
Black Beltstate-snapshotslockPREMIUM

Replacement update overrides queued state

A counter starts at 0. Inside one click handler, React runs:

REACT_MODULE // 0x42
setNumber(number + 5);
setNumber(n => n + 1);
setNumber(42);

What will the counter display after the next render?

lock

This Drill is Locked

This is a premium drill. Continue on to the next free drill in the sequence.

CONTINUE DRILLarrow_forward
BugDojo
BlogFAQ

© 2026. Carved in code.