Slide 33
Slide 33 text
Phased Rendering
You can think of React rendering as being split into two main phases:
• The render phase, where we compare the new tree with the existing tree
and calculate the changes that need to be made. This phase is free of
side-effects, so it can be done asynchronously. The work can also be
interrupted, rebased, restarted, and interleaved with other updates.
• the commit phase, where the changes computed during the render phase
are flushed to the screen. This phase is typically very fast and is
performed synchronously to avoid inconsistencies.