arrow_backBACK TO DRILLS
Black BeltstrictmodelockPREMIUM

Strict Mode Effect double execution

In development Strict Mode, a useEffect with [] logs "connect", then immediately logs "disconnect", then logs "connect" again during mount. Why does React 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.