arrow_backBACK TO DRILLS
White Beltstate-snapshots
State updates are snapshots
A click handler calls setCount(count + 1) and immediately logs count afterward. The component initially rendered with count = 0. What will the log show during that click?
A click handler calls setCount(count + 1) and immediately logs count afterward. The component initially rendered with count = 0. What will the log show during that click?