Skip to main content

React

A JavaScript library for building user interfaces.

The notes are based on React v18.2.0.

Phrases

// root === FiberRootNode
function performConcurrentWorkOnRoot(root) {
// Render phrase
const existStatus = renderRoot(root);
const finishedWork = root.current.alternate;
root.finishedWork = finishedWork;
// The render completed.

// Commit phrase
commitRoot(root);
}

References