React Fiber is a new reconciliation system that appeared in React 16. It makes React smoother and more responsive.
Simple analogy: Imagine you are assembling a puzzle.
What Fiber provides:
How Fiber works under the hood:
Fiber tree structure:
Root Fiber
└── App Fiber
├── Header Fiber (sibling)
└── Content Fiber (sibling)
├── Sidebar Fiber (child)
└── Main Fiber (child)
What this means for the developer: You don't need to do anything — Fiber works "under the hood". But thanks to Fiber, we got:
Common pitfalls with Fiber:
Monitoring: Use React DevTools Profiler to see render timings. The "Why did this render?" feature helps identify unnecessary re-renders that Fiber optimizes.