Every chapter so far taught React as it is today, React 19.3. Real codebases aren't today. You'll open a repository with class components and ReactDOM.render, another halfway through a React 18 migration, a third on a framework that pins a canary build. And interviewers love "what changed in React 18?" because the answer shows whether you know why the APIs look the way they do, or just memorized them.
So this chapter tells React's recent history as a chain of problems and fixes, from hooks in 16.8 to 19.3.1, the current stable release (October 14, 2026). Each release gets the problem it answered, what it shipped and a link to the chapter that teaches it. Then the practical half: release channels, and how to upgrade a real app from 18 to 19.
The problem: which React is this code written for?#
Three snippets, all valid React at some point:
class Search extends React.Component {
state = { q: "" };
componentDidMount() {
this.refs.input.focus();
}
render() {
return <input ref="input" value={this.state.q} onChange={(e) => this.setState({ q: e.target.value })} />;
}
}
ReactDOM.render(<Search />, document.getElementById("root"));function Search() {
const [q, setQ] = useState("");
const inputRef = useRef<HTMLInputElement>(null);
useEffect(() => inputRef.current?.focus(), []);
return <input ref={inputRef} value={q} onChange={(e) => setQ(e.target.value)} />;
}
createRoot(document.getElementById("root")!).render(<Search />);function Search({ ref }: { ref?: React.Ref<HTMLInputElement> }) {
const [results, search, isPending] = useActionState(runSearch, []);
return (
<form action={search}>
<input name="q" ref={ref} />
{isPending ? <Spinner /> : <Results items={results} />}
</form>
);
}The first uses a string ref and ReactDOM.render, both removed in React 19: it doesn't run on today's React at all. The second is React 18 style and still fine. The third uses React 19's Actions and ref as a plain prop. Being able to date code at a glance, and knowing what breaks when you move it forward, is the skill this chapter builds.
Problem: Animating between states needed a library and manual timing; one slow transition held up every other.
- <ViewTransition> and addTransitionType
- Fragment refs (FragmentInstance)
- browser() for use(browser())
- Context rendered directly in Server Components
- Transitions render independently
- Trusted Types integration
- Development warning for conditional use()
- Strict Mode double-invokes effects during hydration
- onReset after form reset, submitter on submit events
Learn it in: Activity and View Transitions, Transitions, Production checklist (Trusted Types)
Before hooks: what 16.8 inherited#
React 16.0 (September 2017) shipped the Fiber rewrite, the interruptible reconciler you built a toy of in Fiber. Nothing user-visible used its interruptibility yet. 16.3 brought the modern createContext API, createRef and forwardRef. 16.6 added memo, lazy and <Suspense> for code splitting. Those pieces matter later, because hooks, concurrency and Suspense for data all sit on top of Fiber.
React 16.8: hooks React 16.8#
The problem. Until February 2019, state and lifecycle meant classes. The React team named three problems with that, and they're still the right way to answer "why hooks?":
- Reusing stateful logic was awkward. The only tools were higher-order components and render props, which wrap your component in layers of other components ("wrapper hell" in DevTools) and collide on prop names.
- One concern got split across lifecycles. A subscription lived in
componentDidMount,componentDidUpdateandcomponentWillUnmount, mixed with unrelated code in each. Forget the update case and you have a stale subscription bug. - Classes confused people and tools.
thisbinding, methods you had to remember to bind, and code that was harder to minify, hot-reload and optimize.
The fix. Hooks let function components hold state and effects. A hook is a call that reads a slot on the component's fiber, in call order, which is why the Rules of Hooks exist (you built exactly this in Hooks from scratch). Here's the subscription problem, before and after:
// Before: one concern, three methods
class ChatRoom extends React.Component<{ roomId: string }> {
componentDidMount() { this.conn = connect(this.props.roomId); }
componentDidUpdate(prev) {
if (prev.roomId !== this.props.roomId) {
this.conn.close();
this.conn = connect(this.props.roomId);
}
}
componentWillUnmount() { this.conn.close(); }
render() { return <h1>{this.props.roomId}</h1>; }
}
// After: one concern, one place
function ChatRoom({ roomId }: { roomId: string }) {
useEffect(() => {
const conn = connect(roomId);
return () => conn.close();
}, [roomId]);
return <h1>{roomId}</h1>;
}And the reuse problem disappears: wrap that effect in useChatConnection(roomId) and any component can call it. That's a custom hook, plain function composition with no extra tree layers. 16.8 shipped useState, useEffect, useContext, useReducer, useRef, useMemo, useCallback, useLayoutEffect, useImperativeHandle and useDebugValue.
Classes still work in React 19. The Class components chapter maps every lifecycle to its hook, and error boundaries are still classes.
React 17: the release with no new features React 17#
The problem. By 2020 React had big apps that couldn't upgrade all at once, and pages where two React versions, or React and another framework, shared a document. React attached all its event listeners to document, so two copies of React fought over the same events.
The fix. React 17 (October 20, 2020) was deliberately a "stepping stone" release. Its headline was that it added no developer-facing features. What it did:
- Gradual upgrades. You could nest a tree managed by one React version inside a tree managed by another, and upgrade one section of the app at a time.
- Event delegation moved from
documentto the root container. Each root listens on its own DOM node, so multiple React versions coexist, ande.stopPropagation()in React now stops the event before it reaches nativedocumentlisteners. The Events chapter builds delegation from scratch. - Event pooling ended. React used to recycle
SyntheticEventobjects, soe.targetwasnullafter anawaitunless you callede.persist(). Pooling bought almost nothing in modern browsers and confused everyone, so it went.e.persist()still exists and does nothing. - A new JSX transform. JSX compiles to
jsx()calls imported automatically fromreact/jsx-runtimeinstead ofReact.createElement, so you no longer needimport Reactin every file just for JSX. It was backported to 16.14, 15.7 and 0.14.10. See Elements and JSX. React 19 requires it. - Smaller behavior fixes. Effect cleanups run asynchronously after the screen updates,
onScrollstopped bubbling,onFocus/onBlurswitched to nativefocusin/focusout, and returningundefinedfrom a component became a consistent error (React 18 later allowed it again).
React 18: concurrent rendering React 18#
The problem. Fiber made rendering interruptible in theory, but React still treated every update as urgent and rendered it to completion. A slow list re-rendering on each keystroke blocked typing. Server rendering was all or nothing: the server waited for all data before sending HTML, and the client hydrated the whole page before anything was interactive.
The fix. React 18 (March 29, 2022) turned on the concurrent renderer. The release post's framing is worth quoting: concurrency "is not a feature, per se", it's a mechanism that lets React prepare multiple versions of the UI at once and interrupt low-priority work. It's opt-in twice over:
- You opt in with
createRoot.ReactDOM.renderstill worked in 18 but logged a warning and ran the app as if it were React 17. The Rendering elements chapter maps the toy'screateRootto the real one. - Concurrent behavior only kicks in where you use a concurrent feature. Without transitions or Suspense, an app on
createRootrenders much like before, except for batching.
That gradual opt-in is why you'll still hear the old name Concurrent Mode in older talks and interview questions. Early plans made concurrency one all-or-nothing mode for the whole app. The team replaced that with concurrent features you adopt one at a time, so "concurrent rendering" and "concurrent features" are the accurate terms today.
What came with it:
- Automatic batching everywhere (below).
- Transitions:
startTransition,useTransitionanduseDeferredValuemark updates as non-urgent so urgent ones, like typing, can interrupt them. See Rendering and scheduling and Transitions. - Suspense on the server: streaming SSR with
renderToPipeableStream(Node) andrenderToReadableStream(Web Streams), so the shell arrives early and slow parts stream in as they're ready, plus selective hydration, which hydrates boundaries independently and prioritizes the one the user interacts with. See SSR and hydration.renderToNodeStreamwas deprecated. - New hooks:
useIdfor ids that match between server and client (Custom hooks),useSyncExternalStorefor tear-free external stores (Build a store) anduseInsertionEffectfor CSS-in-JS libraries (Effects). The last two are meant for library authors. - Strict Mode double effects: in development, Strict Mode mounts each component, unmounts it, and mounts it again, so effects run setup, cleanup, setup. It surfaces effects without proper cleanup, which future features like
<Activity>depend on. See Effects. - Internet Explorer support was dropped.
Automatic batching, 17 versus 18#
Batching means grouping several state updates into one render. React 17 batched only inside React event handlers. Updates in a setTimeout, a promise callback or a native listener each rendered synchronously, on the spot. React 18 on createRoot batches all of them.
A click schedules a setTimeout. When the timer fires, its callback runs outside any React event handler. That's exactly the case React 17 and React 18 treat differently.
You can't run React 17 here (the sandbox runs 19.3.1, which no longer has ReactDOM.render), but you can reproduce its behavior: wrapping each setter in flushSync forces exactly the synchronous render-per-setter that 17 did outside event handlers. Click both buttons and compare the render count and the console.
import { useState } from "react";
import { flushSync } from "react-dom";
import { Rendered } from "guide-tools";
export default function App() {
const [count, setCount] = useState(0);
const [flag, setFlag] = useState(false);
function run(simulate17: boolean) {
setTimeout(() => {
// React 17 rendered synchronously on every setter outside its handlers.
// flushSync reproduces that. Without it, React 18+ batches.
const apply = (update: () => void) => (simulate17 ? flushSync(update) : update());
const out = () => document.getElementById("out")!.textContent;
apply(() => setCount((c) => c + 1));
console.log(simulate17 ? "[17]" : "[18]", "after setCount:", out());
apply(() => setFlag((f) => !f));
console.log(simulate17 ? "[17]" : "[18]", "after setFlag: ", out());
}, 0);
}
return (
<Rendered label="App">
<p id="out">
count={count} flag={String(flag)}
</p>
<button onClick={() => run(false)}>React 18+ (batched)</button>{" "}
<button onClick={() => run(true)}>Simulate React 17</button>
</Rendered>
);
}The batched button adds one render per click, and the console shows the old DOM after both setters, because nothing renders until the callback returns. The simulated 17 button adds two renders, and its console shows an intermediate state: the new count with the old flag. That in-between screen is the real cost 18 removed. It's labeled a simulation for a reason: actual 17 code didn't call flushSync, it just behaved that way outside event handlers.
If you ever need the old behavior on purpose (say, to measure the DOM right after an update), flushSync is the opt-out. The State chapter covers when that's legitimate.
The same component runs on React 17 with ReactDOM.render, and on React 19 with createRoot. The user clicks once and the request succeeds. How many times does Profile render after the click, in each version?
function Profile() {
const [user, setUser] = useState(null);
const [loading, setLoading] = useState(false);
const [loadedAt, setLoadedAt] = useState(0);
function load() {
setLoading(true);
fetch("/api/me")
.then((r) => r.json())
.then((data) => {
setUser(data);
setLoading(false);
setLoadedAt(Date.now());
});
}
// ...
}React 19.0: Actions and the server React 19.0#
The problem. Every app wrote the same code for mutations: a pending flag, an error state, optimistic UI, resetting the form, ignoring stale responses. Server rendering had matured into React Server Components in Next.js's App Router, but they lived in canary builds. And a pile of legacy APIs from the class era made React bigger and harder to change.
The fix. React 19 (December 5, 2024) is the biggest release since hooks:
- Actions. Async functions passed to transitions are Actions: React tracks the pending state, errors and optimistic updates for you.
<form action={fn}>calls one with the form'sFormData. Three hooks go with them:useActionState(state updated by an Action, with a pending flag),useFormStatusfromreact-dom(the pending state of the parent form, no prop drilling) anduseOptimistic(show the expected result while the Action runs). All in Actions. use. Reads a promise (suspending until it resolves) or a context during render, and unlike hooks it can be called conditionally. See Suspense and use.refas a prop. Function components receivereflike any other prop, soforwardRefis no longer needed. Ref callbacks can return a cleanup function. See Refs.<Context>as a provider. Render<ThemeContext value="dark">instead of<ThemeContext.Provider>. See Context.- Document metadata and resources.
<title>,<meta>and<link>rendered anywhere are hoisted into<head>. Stylesheets withprecedenceare ordered and deduplicated, and Suspense waits for them; async scripts are deduplicated. See SSR and hydration. - Resource preloading APIs in
react-dom:preload,preinit,preconnectandprefetchDNS, so a component can tell the browser about a font or script it will need. - Server Components and Server Functions became stable.
"use client"and"use server"are part of React. One nuance worth knowing: the components are stable across 19.x, but the low-level APIs that bundlers and frameworks use to implement them don't follow semver between minors. See Server Components and Server Functions. - Error handling. Errors thrown during render are no longer re-thrown. Uncaught errors go to
window.reportError, caught ones toconsole.error, each logged once instead of in duplicate, and roots acceptonUncaughtErrorandonCaughtErrornext to the existingonRecoverableError. See Errors. - Smaller additions:
useDeferredValue(value, initialValue), hydration errors that print a single diff instead of several warnings, tolerance for third-party scripts and extensions that inject nodes into<head>and<body>, and full custom elements support.
And the removals, most of them deprecated for years:
| Removed in 19 | Use instead |
|---|---|
ReactDOM.render, ReactDOM.hydrate | createRoot, hydrateRoot |
unmountComponentAtNode | root.unmount() |
ReactDOM.findDOMNode | DOM refs |
String refs (ref="input") | Ref callbacks or useRef / createRef |
Legacy context (contextTypes, getChildContext) | createContext |
propTypes on any component (silently ignored) | TypeScript |
defaultProps on function components | Default parameter values (classes keep defaultProps) |
Module pattern factories, React.createFactory | Plain functions, JSX |
react-dom/test-utils (except act, now import { act } from "react") | React Testing Library |
react-test-renderer/shallow | React Testing Library (or the standalone react-shallow-renderer) |
| UMD builds | An ES module CDN such as esm.sh |
element.ref was deprecated in favor of element.props.ref, and react-test-renderer as a whole was deprecated.
React 19.1: Owner Stacks React 19.1#
The problem. A component stack tells you where a component sits in the tree: inside List, inside Page. When something goes wrong, the more useful question is often who rendered it: which component's code created this element with these props.
The fix. React 19.1 (March 28, 2025) added Owner Stacks, shown in development error messages, and captureOwnerStack() to read one yourself, for example to attach it to an error report. Both are development-only: captureOwnerStack returns null in production. 19.1 also improved Suspense across client, server and hydration and changed useId's format so ids are valid CSS selectors. See Errors.
React 19.2: Activity, Effect Events and partial prerendering React 19.2#
The problem. Hiding a tab meant either unmounting it (losing its state) or hiding it with CSS (leaving its effects running and its updates competing with visible UI). Effects re-synchronized whenever any value they read changed, even values that were only read, not reacted to. And frameworks wanted to serve a static shell from a CDN and fill in dynamic parts later, without a framework-specific mechanism.
The fix. React 19.2 (October 1, 2025):
<Activity mode="visible" | "hidden">. Hidden children keep their state and DOM but behave as if unmounted: effects are cleaned up and updates wait until React has nothing else to do. It also lets you pre-render what the user is likely to open next. See Activity and View Transitions.useEffectEvent. Pull the "event" part of an effect (show a notification using the current theme) out of its reactive logic, so changing the theme doesn't reconnect the chat. Effect Events always see the latest props and state and never go in the dependency array. See Effects.cacheSignalfor Server Components: anAbortSignalthat fires when thecache()lifetime ends, so you can abort work the render no longer needs. See Server Components.- Performance tracks in Chrome DevTools: a Scheduler track showing React's work by priority and a Components track showing what's rendering. See Measure first.
- Partial prerendering resume APIs.
prerenderproduces a static prelude plus apostponedstate; later,resume(orresumeToPipeableStream) streams the dynamic rest, andresumeAndPrerenderturns it into static HTML. See SSR and hydration. - Batched Suspense reveals during SSR: server-rendered boundaries now reveal in short batches, matching client behavior, with a heuristic that stops batching as load time approaches the 2.5 second LCP threshold.
It also changed useId's prefix to _r_ (valid in view-transition-name), and shipped eslint-plugin-react-hooks 6.1, whose recommended preset became a flat config with the new Compiler-powered rules opt-in. Version 7, a week later alongside Compiler 1.0, put those rules in recommended.
React 19.3: View Transitions and Fragment refs React 19.3#
The problem. Animating between UI states, a list reordering or a page sliding in, needed an animation library and careful timing around React's commits. Several transitions in flight were entangled into one render, so one slow transition held up an unrelated fast one.
The fix. React 19.3 (September 9, 2026):
<ViewTransition>andaddTransitionType. Wrap UI in<ViewTransition>and updates inside a transition animate with the browser's View Transition API: enter, exit, update and shared-element animations.addTransitionType("next")tags why a transition happened so you can animate forward and back differently. See Activity and View Transitions.- Fragment refs.
<Fragment ref={ref}>gives you aFragmentInstancethat can add event listeners, focus, and observe intersection or resize across the fragment's children, without a wrapperdiv. See Refs. browser()fromreact-dom:use(browser())renders the nearest Suspense fallback on the server and the real content on the client, a clean way to opt part of a tree out of SSR. See SSR and hydration.- Context in Server Components. A Server Component can render
<UserContext value={user}>directly, whereUserContextcomes from a"use client"module, with no wrapper provider component. See Server Components. - Transitions render independently instead of being batched into one entangled render. See Transitions.
- Trusted Types. React passes values to DOM sinks without turning them into strings first, so
TrustedHTMLand friends survive and a strictrequire-trusted-types-for 'script'policy works. See the Production checklist. - A development warning for conditional
use()(Suspense and use), Strict Mode double-invoking effects during hydration too, matching client roots,onResetfiring when React resets a form after an Action, andsubmitteron submit events (Forms).
React 19.3.1 (October 14, 2026) is a patch release on top of 19.3 and the current latest on npm. Install that.
React Compiler 1.0 React Compiler 1.0#
The Compiler isn't part of the react package, and it's versioned on its own. React Compiler 1.0 shipped as stable on October 7, 2025: a build-time Babel plugin (babel-plugin-react-compiler) that memoizes components and hooks automatically, so most hand-written useMemo, useCallback and memo become unnecessary. It works with React 17 and later (below 19 through the react-compiler-runtime package and the target option). It assumes your code follows the Rules of React, which is why the lint rules in eslint-plugin-react-hooks matter. Next.js 16 made reactCompiler: true stable but off by default. Everything else is in The React Compiler.
Stable, canary and experimental#
React publishes three release channels on npm:
| Channel | npm tag | Semver? | For |
|---|---|---|---|
| Latest (stable) | latest | Yes | Applications. "If you're not sure which channel you should use, it's Latest." |
| Canary | canary | No; occasional breaking changes | Frameworks and controlled setups that pin an exact canary and ship new features on their own schedule; library authors testing against what's next |
| Experimental | experimental | No guarantees at all | Trying unreleased APIs behind feature flags. Never in user-facing apps |
Canary is the main branch, a release candidate for the next stable version. React introduced the channel in May 2023 precisely so frameworks could adopt features like Server Components before a stable release. That's why the Next.js docs say the App Router uses React canary releases built-in: you install react@latest in package.json, but the App Router runs the canary Next.js bundled and tested. That's the sanctioned "Canary workflow", not you running prerelease React. Badges in this guide use Canary only and Experimental for anything that hasn't reached stable.
Two more semver fine-print items interviewers sometimes probe: development warnings can change in minor releases (that's how React announces upcoming breaks), and anything prefixed unstable_ is outside the guarantee.
Upgrading from 18 to 19#
The official upgrade guide's sequence, with what goes wrong in practice:
-
Upgrade to 18.3 first. 18.3.0 is identical to 18.2 except it adds deprecation warnings for everything React 19 removes. Run the app and the tests, and fix the warnings while you're still on a working version.
-
Make sure the new JSX transform is on. React 19 requires it and warns if it finds the old one. Modern toolchains (Vite, Next.js, Babel with
runtime: "automatic", TypeScript with"jsx": "react-jsx") already use it. -
Install React 19 and its types.
npm install --save-exact react@^19.0.0 react-dom@^19.0.0 npm install --save-exact @types/react@^19.0.0 @types/react-dom@^19.0.0Today you'd install the current release,
react@19.3.1. -
Run the codemods. The guide recommends the
codemodCLI, which runs the transforms from thereact-codemodrepository:# All the React 19 transforms in one recipe npx codemod@latest react/19/migration-recipe # TypeScript type changes npx types-react-codemod@latest preset-19 ./path-to-appThe recipe covers
replace-reactdom-render(render,hydrateandunmountComponentAtNodeto the root APIs),replace-string-ref,replace-act-import,replace-use-form-state(the canaryuseFormStatetouseActionState) andprop-types-typescript. It doesn't touch types;types-react-codemoddoes. -
Fix what's left, then the types.
The breakages that actually bite:
- Dependencies, not your code. Old libraries that call
findDOMNode(older versions of animation and drag-and-drop libraries were the classic offenders), read React internals, or declare areactpeer dependency below 19. Auditnpm ls reactand upgrade them first. A library that touches internals can block the whole upgrade. defaultPropson function components silently stops working. No error, justundefinedprops. Search for.defaultProps =and move each to default parameters.propTypeschecks also vanish silently.- Tests.
react-dom/test-utilsis gone apart from a deprecatedactre-export (theactcodemod fixes imports),react-test-rendereris deprecated, and Enzyme has no React 19 adapter. Teams still on Enzyme usually migrate to React Testing Library as part of the upgrade. - Error reporting. Because render errors aren't re-thrown, monitoring that relied on catching them globally can go quiet. Wire
onUncaughtErrorandonCaughtErroron the root to your error reporter. - TypeScript.
useRef()needs an argument; ref callbacks can't implicitly return a value (ref={(el) => (this.el = el)}becomes a block body);ReactElement["props"]isunknowninstead ofany; the globalJSXnamespace moved toReact.JSX. - Behavior changes you might notice. When a component suspends, React now commits the nearest fallback immediately and pre-renders siblings afterwards, which can change loading sequences. In Strict Mode,
useMemoanduseCallbackreuse the first render's result during the double render, and ref callbacks are double-invoked on mount.
And from 19.0 to 19.3, it's a minor upgrade: no removals, but read the release notes for behavior changes like independent transitions and Strict Mode during hydration, and update eslint-plugin-react-hooks alongside.
This code was written for React 16 and ran fine on 18. On React 19 (which this sandbox runs) the page crashes on mount, and once that's fixed, the default badge renders blank. Upgrade it so the default badge says "New" and the input is focused on mount. Keep the components' behavior; change only how they're written.
import { Component } from "react";
import * as ReactDOM from "react-dom";
function Badge({ label, tone }: { label?: string; tone?: string }) {
return <span className={`badge badge-${tone}`}>{label}</span>;
}
Badge.defaultProps = { label: "New", tone: "info" };
class SearchBox extends Component {
componentDidMount() {
// Focus the input once it's on screen.
(ReactDOM as any).findDOMNode(this).focus();
}
render() {
return <input aria-label="Search" placeholder="Search books" />;
}
}
export default function App() {
return (
<div>
<SearchBox />
<p>
<Badge /> <Badge label="Sale" tone="warn" />
</p>
</div>
);
}Pitfalls#
Check your understanding#
Your team builds a React SPA with Vite and wants a React 19.3 feature before it reaches stable. A teammate suggests installing react@canary. What's the right call?
Which of these still works in React 19.3?
An interviewer asks: "Walk me through how React has changed since hooks. What problem did each major release solve?"
"We have a 300-component app on React 18.2 with Jest and some Enzyme tests. How would you move it to React 19?"
Interview angle
Each React release answered a problem. Hooks in 16.8 replaced classes so logic could be grouped by concern and reused as custom hooks. React 17 shipped no features on purpose: it moved event delegation to the root so apps could upgrade gradually. React 18 turned on the concurrent renderer with createRoot: automatic batching, transitions, and streaming SSR with selective hydration. React 19 added Actions, use, ref as a prop and stable Server Components, and removed the class-era legacy. The 19.x minors added Owner Stacks, Activity, useEffectEvent and View Transitions. Today's stable is 19.3.1, and the Compiler is at 1.0.
What changed in React 18, and what did you have to do to get it?
What happens when you call two state setters inside a setTimeout, in React 17 versus React 18?
React 17 had no new features. Why did it matter?
What was removed in React 19, and which removals are dangerous?
How would you upgrade a large production app from React 18 to 19?
What's the difference between React's stable, canary and experimental channels? Next.js uses canary React. Is that a problem?
What have the React 19 minor releases added that you'd actually use?
Recap#
- Each release answers a problem: 16.8 hooks fixed reuse and lifecycle sprawl; 17 enabled gradual upgrades with root-level delegation; 18 added the concurrent renderer, automatic batching, transitions and streaming SSR; 19 added Actions,
use, stable Server Components and removed the class-era legacy. - The 19.x minors keep shipping real features: Owner Stacks (19.1),
<Activity>anduseEffectEvent(19.2),<ViewTransition>, Fragment refs andbrowser()(19.3). 19.3.1 is the current stable. - Automatic batching: 17 batched only in React event handlers; 18+ batches everywhere, so code in timeouts and promises renders once and never shows in-between states.
- Applications use the
latestchannel. Canary is for pinned framework setups, experimental for trying ideas. - Upgrade 18 to 19 by going to 18.3 first, fixing dependencies and tests, then running
npx codemod@latest react/19/migration-recipeandtypes-react-codemod preset-19, and checking for the silent breakages.
Sources#
- react.dev: React Versions
- react.dev: Versioning policy (release channels)
- react.dev: React v18.0
- react.dev: React v19
- react.dev: React 19 Upgrade Guide
- react.dev: React 19.2
- react.dev: React 19.3
- react.dev: React Compiler v1.0
- react.dev: React Canaries: Enabling incremental feature rollout outside Meta
- legacy.reactjs.org: React v17.0 and Introducing Hooks: Motivation
- GitHub: React CHANGELOG
- npm: react (release dates and dist-tags)
- nextjs.org: Installation (the App Router's built-in React canary)
- Facts checked November 24, 2026.