arrow_backBACK TO DRILLS
White Beltstate-snapshotsPREMIUM
Alert placement after setState
A component runs this code inside a click handler:
REACT_MODULE // 0x42
setWalk(!walk);
alert(walk ? 'Stop is next' : 'Walk is next');What effect would moving the alert above the setWalk call have?