arrow_backBACK TO DRILLS
White Beltstate-snapshotsPREMIUM
Logging State Right After Calling Its Setter
Inside a click handler, a component calls setCount(count + 1) and then immediately logs count. What value will be logged?
Inside a click handler, a component calls setCount(count + 1) and then immediately logs count. What value will be logged?