What's new in React 18?

LowIntermediateReact
Preparing for interviews?

Use guided tracks for structured prep, then practice company-specific question sets when you want targeted interview coverage.

Quick Answer

React 18 introduced the concurrent rendering foundation plus new APIs like createRoot, automatic batching, transitions, and new hooks. Explain the key changes and why they matter to users and developers.

Answer

The Core Idea

React 18 is about a new rendering foundation (concurrency) plus APIs that make apps feel more responsive without changing every component. It also adds new hooks and stricter dev checks to surface unsafe effects.

Change

Why it matters

Example

New root API

Enables concurrent features and improved scheduling

createRoot(...)

Automatic batching

Fewer renders across async boundaries

Multiple state updates in timeouts/promises

Transitions

Keep urgent input responsive during heavy updates

startTransition, useTransition

Deferred values

Let expensive UI lag slightly behind fast input

useDeferredValue

Suspense + streaming SSR

Faster time-to-first-byte and incremental rendering

Stream HTML and hydrate as data arrives

New hooks for ids and external stores

Stable ids for a11y and safer subscriptions

useId, useSyncExternalStore

Key React 18 additions interviewers expect

Migration notes

Move to createRoot to opt into React 18 behavior, and audit effects for StrictMode double-invocation in dev. Use transitions for non-urgent updates and keep effects idempotent.

Summary

React 18 adds concurrent rendering foundations, automatic batching, transitions/deferred values for responsiveness, stronger Suspense/streaming capabilities, and new hooks like useId. The goal is smoother UI without blocking urgent updates.

Similar questions
Guides
39 / 41