React
Frontend & MobileThe library for web and native user interfaces.
Release History
v19.0.31 featureThis update introduces enhanced loop protection for React Server Functions to improve stability in React Server Components.
v19.1.41 featureThis update introduces enhanced loop protection for React Server Functions to improve stability in React Server Components.
v19.2.31 featureThis update introduces enhanced loop protection for React Server Functions to improve stability in React Server Components.
v19.0.22 fixesThis patch update for React Server Components addresses issues with Promise cycles and the toString method within Server Functions.
v19.1.3Breaking2 featuresThis release updates React Server Components by moving unbundled webpack entry points to a private package and improving Server Function stability with Promise cycle patching and toString support.
v19.2.2Breaking2 featuresThis release moves unbundled React Server DOM utilities to a private package and improves Server Function stability by patching Promise cycles and toString methods.
v19.2.11 fixThis release synchronizes internal React Server Component fixes with Server Actions to improve reliability.
v19.1.21 fixThis release synchronizes internal React Server Component fixes with the Server Actions implementation to improve reliability.
v19.0.11 fixThis release applies existing React Server Component fixes to Server Actions to improve reliability.
v19.2.0Breaking9 fixes9 featuresReact 19.2 introduces the <Activity> component, useEffectEvent hook, and new resume APIs for partial pre-rendering. It also includes significant updates to the ESLint plugin and changes the ID generation format for useId.
v19.1.11 fixThis release includes a bug fix for React's Owner Stacks to ensure they function correctly with ES2015 function.name semantics.
v19.1.0Breaking10 fixes10 featuresThis release introduces Owner Stacks for enhanced development debugging and the experimental unstable_prerender API for Server Components. It also includes significant improvements to Suspense hydration, CSS-compliant useId formatting, and various bug fixes across React DOM and Server Components.
Common Errors
WeirdLintError1 reportThis "WeirdLintError" with React hooks often arises from outdated or conflicting ESLint configurations, especially involving `eslint-plugin-react-hooks`. Resolve it by updating `eslint`, `eslint-plugin-react-hooks`, and `@typescript-eslint/*` packages to their latest versions via npm or yarn; then, ensure your ESLint configuration correctly enables the recommended rules for React Hooks. A full reinstall can sometimes be required, making sure to delete `node_modules` and `package-lock.json` before running `npm install`.
WorkAroundLintError1 reportThe "WorkAroundLintError" often arises when ESLint rules, especially those from `eslint-plugin-react-hooks` like `react-hooks/exhaustive-deps`, are overly strict and flag valid code. To fix this, carefully review the dependencies suggested by the error message; if they are truly unnecessary or inclusion breaks functionality, disable the rule for that specific line using an ESLint comment like `// eslint-disable-next-line react-hooks/exhaustive-deps`. Alternatively, consider refactoring your code to align with the intended usage of hooks.