Home
← All questions

What is React Fiber and why was it introduced?

HardPremiumReact

Asked at Meta · Google · Amazon

React interview practice: Explain Fiber's incremental rendering, time slicing, and how it enables concurrent React.

Answer

React Fiber is React's reconciliation engine (since React 16). Each unit of work is a Fiber node — a JS object representing a component instance with child, sibling, return pointers forming a linked tree.

Why Fiber replaced the old stack reconciler:

  • The old reconciler was synchronous and recursive — once started, it ran to completion and could block the main thread on large trees.
  • Fiber breaks work into units that can be paused, resumed, aborted, and prioritized.

Key capabilities:

  1. Incremental rendering — split reconciliation across frames.
  2. Time slicing — yield to the browser between units so input stays responsive.
  3. Priority levels — user input > animations > data fetch updates.
  4. Concurrent features — startTransition, Suspense, selective hydration.
Premium question

Unlock the full model answer with Mentoxis Premium.

Unlock with Premium