DEV Community

Discussion on: About React Suspense and Concurrent Mode

pomber profile image
Rodrigo Pombo Author • Edited on

React Fiber refers to the new algorithm and data structures that React uses internally (since React 16.0.0). The old algorithm made implementing Concurrent Mode very difficult.

The old algorithm, sometimes called Stack Reconciliation, rendered the elements recursively. So it wasn't easy to stop it after it started rendering an element tree.

function render(element) {

  const children = getChildren(element);
  children.forEach(child =>

The new algorithm renders the element tree inside a while, so it's easier to pause and re-start later.

let nextElement

function render(element) {
  nextElement = element

function workLoop() {
  while (nextElement && !shouldYield()) {
    nextElement = getNextElement(nextElement)
kambleaa007 profile image
Ashish Kamble

Introducing Concurrent Mode (Experimental) and coming in next year, why its old algorithm, i dont understand