Skip to content

Concurrent Features

In one line

Concurrent features let React work on multiple UI updates at once, interrupting low-priority work for urgent updates.

In simple words

Concurrent features (React 18) change how React renders. Instead of rendering synchronously (blocking the main thread), React can now:

  1. Interrupt rendering — if an urgent update comes in during a slow render, React pauses it
  2. Prepare multiple versions — React can work on a new UI while showing the old one
  3. Batch more aggressively — automatic batching of updates across async operations
  4. Suspend — components can pause rendering while waiting for data

Enabled by default in React 18. Key APIs: useTransition, useDeferredValue, Suspense, useSyncExternalStore. These features make apps smoother under heavy computational load.

Example

jsx
import { createRoot } from "react-dom/client";
import { Suspense, useTransition } from "react";

// Enable concurrent rendering
const root = createRoot(document.getElementById("root"));
root.render(
  <Suspense fallback={<Loading />}>
    <App />
  </Suspense>
);

function App() {
  const [isPending, startTransition] = useTransition();
  // Updates in startTransition are interruptible
  const handleClick = () => startTransition(() => setTab("settings"));
  return <button onClick={handleClick}>Switch</button>;
}

createRoot enables concurrent rendering. Suspense and useTransition leverage it for smoother UX during expensive updates.

Common confusions

  • Confused with: parallel rendering

    The difference: Concurrent rendering is still single-threaded — React interleaves work on the main thread, it doesn't use web workers. It's about interrupting and prioritizing renders, not running them in parallel threads. Think cooperative multitasking, not parallelism.

Related terms

Related Resources

Related Lessons

Decode error messages

Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.

View errors

← Back to glossary