Skip to main content
SUKOAA DEBUG DETECTIVE
REAL-WORLD DEBUGGING

Debug Detective

Diagnose realistic bugs before seeing a fix. These exercises are deterministic and do not run arbitrary code.

React: stale counter

Easy · React

Symptom: Clicking twice quickly only increments once.

setCount(count + 1);
setCount(count + 1);

What is the root cause?

Continue to coding challenges →