arrow_backBACK TO DRILLS
Black BeltstrictmodelockPREMIUM

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?

lock

This Drill is Locked

This is a premium drill. Continue on to the next free drill in the sequence.

CONTINUE DRILLarrow_forward
BugDojo
BlogFAQ

© 2026. Carved in code.