Fiber Architecture
In one line
Fiber is React's internal tree structure that supports pausing, resuming, and prioritizing rendering work.
In simple words
Fiber (React 16+) is React's internal reimplementation of the core algorithm. Each component becomes a "fiber" — a node in a linked list/tree that tracks:
- Work to do — what needs to render/update
- Priority — urgent vs deferred
- State — current and pending
- Links — parent, child, sibling pointers
Fibers enable:
- Interruptible rendering — pause work, handle user input, resume
- Time-slicing — spread work across multiple frames
- Prioritization — urgent updates jump the queue
- Concurrent features — useTransition, Suspense build on this
Before Fiber (React 15 and earlier), rendering was synchronous and recursive — it couldn't be interrupted.
Example
// Fiber is internal — you don't use it directly
// But it enables these features:
import { useState, useTransition, Suspense } from "react";
function App() {
const [isPending, startTransition] = useTransition();
// Fiber allows this transition to be interrupted
// if the user types or clicks during it
return (
<Suspense fallback={<Loading />}>
<Content />
</Suspense>
);
// Fiber allows Suspense to pause rendering
// and resume when data is ready
}Fiber is React's internal architecture enabling interruptible, prioritized rendering. You use it indirectly via concurrent features.
Common confusions
Confused with: virtual DOM
The difference: The virtual DOM is the conceptual tree of React elements. Fiber is the internal data structure that implements the virtual DOM with additional metadata for work tracking, priorities, and links. Virtual DOM is the concept; Fiber is the implementation.
Related terms
Related Resources
Related Lessons
- React Internals
Fiber architecture.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.