arrow_backBACK TO DRILLS
Black BeltstrictmodePREMIUM
Strict Mode double-calling updater functions
In development with Strict Mode enabled, a useState updater function appears to run twice for a single click. Why does React intentionally do this?
In development with Strict Mode enabled, a useState updater function appears to run twice for a single click. Why does React intentionally do this?