Skip to content
react questions

React · 4 of 13senior~1 min

What is React Fiber and why was it introduced?

#core#performance

React Fiber

Fiber is a complete rewrite of React's internal rendering engine (introduced in React 16).

Problem with the old engine (Stack Reconciler)

The previous reconciler traversed the component tree recursively and synchronously - it could not be interrupted. With a large tree this blocked the main thread and caused UI jank.

What Fiber changed

  • Reconciliation is split into small units of work.
  • Work can be paused, cancelled, or resumed.
  • Task prioritization: animations matter more than background data updates.

This opened the path to concurrent rendering

text
High priority: user input, animations Low priority: data fetching renders, transitions

Summary: Fiber is the architectural foundation for Suspense, Transitions, useDeferredValue, and all of Concurrent React.

updated

did you know it?

read more on the blog

view all

related questions