Fiber, Render Work, and Scheduling
React exposes a declarative API, but internally it must process updates, call components and Hooks, reconcile identities, coordinate Suspense, prioritize work, and commit accepted results.
Conceptual model: Fiber is React's internal work architecture, not an application API. Do not depend on private fields, flags, lane values, or traversal details.
Why React needs interruptible work
The value is scheduling flexibility, not magical parallel JavaScript execution.
Treat Fiber as an internal work record
A useful conceptual Fiber record connects:
Never read undocumented DOM properties such as __reactFiber$... in application code.
Render and commit are separate phases
This separation is why render-time side effects are unsafe: a render attempt can happen without ever committing.
Only commits become visible
A console.log() during render means React evaluated the component, not that the user observed that candidate UI.
Concurrency is cooperative scheduling
If one component performs a huge synchronous calculation, you may still need better algorithms, less data, virtualization, server computation, caching, or a Web Worker.
Urgent vs Transition work
const [isPending, startTransition] = useTransition();
function selectTab(tab) {
startTransition(() => {
setSelectedTab(tab);
});
}
Transition work is non-blocking and interruptible relative to urgent work. It does not make expensive computation cheaper.
Do not depend on lanes
Articles and source code often discuss lanes, React's internal priority representation.
Application code should use public APIs such as state updates, startTransition, useTransition, useDeferredValue, Suspense, and <Activity> rather than lane bitmasks or private Scheduler assumptions.
State is a render snapshot
function Counter() {
const [count, setCount] = useState(0);
function handleClick() {
setCount(count + 1);
console.log(count);
}
}
The handler sees the state snapshot from the render that created it.
Update queues are a stable mental model
setCount(c => c + 1);
setCount(c => c + 1);
setCount(c => c + 1);
You do not need internal queue node structures to reason correctly about functional updates.
Restartable work makes purity essential
Event-caused work belongs in event handlers. Synchronization with external systems belongs in Effects. Render calculates UI.
Stable contract vs implementation detail
Senior-level internals knowledge should help explain public behavior while preserving the freedom for React's implementation to evolve.