In demos, React 19 looks great: <Activity> keeps state for hidden tabs, custom elements score 100% in compatibility tests, and Error Boundaries catch render crashes. In real apps, things break at the seams. An image inside a hidden tree loops renders, a custom event disappears after hydration, and nobody ever tested the error fallback screen.
Dan Abramov's PR series in React: fixing Suspense and edge cases
The <Activity> component from React 19.2 hides a subtree in mode="hidden". State stays alive, useEffect cleans up, and updates drop to low priority. When combined with <Suspense>, SuspenseList, and Transitions, scheduler race conditions show up.
Over three days in early December 2026, Dan Abramov opened 19 pull requests in the React repo. In hidden <Activity> trees, updates were lost when priorities crossed, and deleting one node before hiding removed its sibling children too. A hidden boundary waiting for an image entered an infinite render loop, a SuspenseList row failed to show, and a nested fallback froze the outer boundary. Another fix stops a stack overflow in React Flight when reporting a non-serializable value.
Most of these 19 PRs are still under review and have not shipped to npm. If you already use <Activity> with complex Suspense in production, watch for the next React 19.x patches.
Marmelab's experience: shipping a design system as Web Components in React 19
React 19 learned to write JS properties on custom elements directly and scored 100% on Custom Elements Everywhere. The Marmelab team tested this on a live design system across nine stress tests in Chrome and Firefox.
The basics work well. Objects don't turn into "[object Object]", forms work with Form Actions, and React 19.3 fixed Declarative Shadow DOM after hydration (in 19.2, re-renders overwrote innerHTML and wiped out the shadow tree).
Then the quiet traps start. React 19 strips on and listens to the rest of the name with exact case: onPlayStateChange expects "PlayStateChange", not "play-state-change". On the client, onplay-state-change works. During SSR, hydrateRoot() skips on* listeners and doesn't set JS properties until a prop or ref changes. A reliable workaround is a callback ref (or @lit/react):
// Subscribe to a custom event directly via ref
function useCustomEvent(
name: string,
handler: (e: Event) => void,
) {
const latest = useRef(handler);
useLayoutEffect(() => {
latest.current = handler;
});
return useCallback(
(el: HTMLElement | null) => {
if (!el) return;
const fn = (e: Event) => latest.current(e);
el.addEventListener(name, fn);
// In React 19, callback refs can return a cleanup function
return () => el.removeEventListener(name, fn);
},
[name],
);
}
// On the client without SSR, hyphenated names work
<media-player volume={0.5} onplay-state-change={onToggle} />;
This hook survives SSR hydration and React Compiler memoization. There are three more traps to watch out for:
- Lazy
customElements.define()after the first render turns objects into"[object Object]"permanently. - Sorting a keyed list triggers
disconnectedCallback. - Importing
extends HTMLElementon the server crashes Node.
For SPAs on React 19.3, Web Components work fine. For SSR, you still need a thin React wrapper.
React Chaos 2.0: controlled render failures for testing Error Boundaries
Teams often test Error Boundaries once when writing them, and later a broken widget takes down the whole production page. React Chaos updated to version 2.0 with React 18 and 19 support, ESM/CommonJS builds, and TypeScript types.
In the 2019 version, failures flipped a coin on every render. Because of React retries and double renders in StrictMode, a 50% setting actually triggered the fallback around 24% of the time (or 56% in StrictMode). Now a pure function of (seed, id, probability) decides the failure, so one seed breaks the exact same widgets everywhere. Chaos is off by default and connects via <Chaos>, withChaos, or useChaos.
import { ChaosProvider, Chaos } from 'react-chaos';
function AppShell() {
return (
// One seed reproduces the same set of failures
<ChaosProvider enabled seed="checkout-1">
<ErrorBoundary fallback={<WidgetFallback />}>
<Chaos id="cart-summary" probability={0.4}>
<CartSummary />
</Chaos>
</ErrorBoundary>
</ChaosProvider>
);
}
When it triggers, it throws a ChaosError with seed, id, and probability so your error tracker can tell tests apart from real bugs. readChaosSeedFromLocation() also reads the key from ?chaos=qa-1 or localStorage. Pass an explicit id in withChaos, or your minifier will rename the component and break reproducibility. Don't leave URL seed reading enabled in production; keep this tool on QA and preview environments.
react-chartjs-2 6.0: full move to ESM-only
The React wrapper for Chart.js shipped react-chartjs-2 6.0. The package dropped CommonJS, became ESM-only ("type": "module", dist/index.js), and fixed React 16 and 17 under strict module resolution.
Components, props, and event helpers did not change. In Vite, webpack 5, Rollup, esbuild, and Parcel, your code stays the same:
import {
Chart as ChartJS,
ArcElement,
Tooltip,
Legend,
} from 'chart.js';
import { Doughnut } from 'react-chartjs-2';
// Register needed Chart.js elements for tree-shaking
ChartJS.register(ArcElement, Tooltip, Legend);
export function ShareChart({ data }: { data: any }) {
return <Doughnut data={data} />;
}
Check your environment before upgrading. You need chart.js 4.1.1+, React 16.8 to 19, and Node.js 20.19+ or 22.12+ if you use require() from CJS. The main pain point is older Jest setups: according to the v6 migration guide, you will need to switch Jest to ESM or add the package to transformIgnorePatterns. On Vitest, the upgrade is smooth, while older Node projects are better off staying on v5.


