commit phase

The part of an update where React applies the calculated changes to the real DOM, all at once and without interruption.

In more detail

After the commit React updates refs, runs layout effects before the browser paints, and runs ordinary effects afterwards. The commit runs synchronously so users never see a half-applied update.

Related terms

Taught in

References