Skip to content

chore(deps): update react to 19.2.0#1

Closed
devsilvarafael wants to merge 1 commit intomainfrom
deps/update-react-19.2.0
Closed

chore(deps): update react to 19.2.0#1
devsilvarafael wants to merge 1 commit intomainfrom
deps/update-react-19.2.0

Conversation

@devsilvarafael
Copy link
Copy Markdown
Owner

Bumps react from ^17.0.2 to 19.2.0.

Changelog

Below is a list of all new features, APIs, and bug fixes.

Read the React 19.2 release post for more information.

New React Features

  • <Activity>: A new API to hide and restore the UI and internal state of its children.
  • useEffectEvent is a React Hook that lets you extract non-reactive logic into an Effect Event.
  • cacheSignal (for RSCs) lets your know when the cache() lifetime is over.
  • React Performance tracks appear on the Performance panel’s timeline in your browser developer tools

New React DOM Features

  • Added resume APIs for partial pre-rendering with Web Streams:
  • Added resume APIs for partial pre-rendering with Node Streams:
  • Updated prerender APIs to return a postponed state that can be passed to the resume APIs.

Notable changes

  • React DOM now batches suspense boundary reveals, matching the behavior of client side rendering. This change is especially noticeable when animating the reveal of Suspense boundaries e.g. with the upcoming <ViewTransition> Component. React will batch as much reveals as possible before the first paint while trying to hit popular first-contentful paint metrics.
  • Add Node Web Streams (prerender, renderToReadableStream) to server-side-rendering APIs for Node.js
  • Use underscore instead of : IDs generated by useId

All Changes

React

React DOM

React Server Components

React Reconciler

eslint-plugin-react-hooks@6.1.0

Note: Version 6.0.0 was mistakenly released and immediately deprecated and untagged on npm. This is the first official 6.x major release and includes breaking changes.

  • Breaking: Require Node.js 18 or newer. (@michaelfaith in #32458)
  • Breaking: Flat config is now the default recommended preset. Legacy config moved to recommended-legacy. (@michaelfaith in #32457)
  • New Violations: Disallow calling use within try/catch blocks. (@poteto in #34040)
  • New Violations: Disallow calling useEffectEvent functions in arbitrary closures. (@jbrown215 in #33544)
  • Handle React.useEffect in addition to useEffect in rules-of-hooks. (@Ayc0 in #34076)
  • Added react-hooks settings config option that to accept additionalEffectHooks that are used across exhaustive-deps and rules-of-hooks rules. (@jbrown215) in #34497

@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 31, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
dtmoney Error Error Mar 31, 2026 6:44pm

@devsilvarafael devsilvarafael deleted the deps/update-react-19.2.0 branch March 31, 2026 18:44
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the react dependency to version 19.2.0. Feedback highlights several critical issues: the react-dom version must be updated to match react to avoid runtime errors, the application entry point must be refactored to use the createRoot API, and react-scripts 5.0.0 is incompatible with React 19, necessitating a migration to a modern build tool.

Comment thread package.json
"miragejs": "^0.1.43",
"polished": "^4.1.4",
"react": "^17.0.2",
"react": "19.2.0",
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

The react-dom dependency (line 18) must be updated to 19.2.0 to match the react version. Running mismatched versions of react and react-dom is not supported and will lead to runtime errors and peer dependency conflicts during installation. Additionally, it is recommended to use the caret prefix (^) for consistency with other dependencies in this file.

Suggested change
"react": "19.2.0",
"react": "^19.2.0",

Comment thread package.json
"miragejs": "^0.1.43",
"polished": "^4.1.4",
"react": "^17.0.2",
"react": "19.2.0",
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

React 19 removes support for the legacy ReactDOM.render API. The application's entry point in src/index.tsx (lines 26-31) must be refactored to use the createRoot API from react-dom/client. Without this change, the application will fail to mount and crash on startup.

Comment thread package.json
"miragejs": "^0.1.43",
"polished": "^4.1.4",
"react": "^17.0.2",
"react": "19.2.0",
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

react-scripts 5.0.0 is not compatible with React 19 due to strict peer dependency requirements and internal changes in React's rendering engine. This upgrade will likely cause build failures or dependency resolution issues. Since Create React App is no longer maintained, consider migrating the project to a modern build tool like Vite.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant