arrow_backBACK TO DRILLS
Black Belt - HardstrictmodelockPREMIUM

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.