Home / Insights / Web and SaaS Development

Web and SaaS Development

React 19 for Business Apps: Actions, Forms and a Practical Upgrade Plan for Teams

React 19 became stable in December 2024. For teams running form-heavy business applications, the useful changes are Actions and the new form hooks; the costly ones are removed legacy APIs and stricter TypeScript types. This guide explains both and sets out an upgrade plan.

TopicsWeb and SaaS DevelopmentArchitecture and Modernization

Key takeaways

  • React 19’s biggest day-to-day change for business apps is Actions: async functions that React runs in a transition, with built-in pending state, error handling and optimistic updates through useActionState, useFormStatus and useOptimistic.
  • Server Components are stable in React 19, but they need a framework. A client-rendered single-page app can adopt Actions and the form hooks without changing its architecture.
  • The upgrade cost sits in removed APIs (ReactDOM.render, string refs, legacy context, propTypes and defaultProps on function components) and in stricter TypeScript types, not in the new features.
  • Upgrade to React 18.3 first, fix its deprecation warnings, run the official codemods, then upgrade dependencies that block React 19 before touching application code.
  • Treat the upgrade as a planned work package with an inventory, a test baseline and a rollback point, and adopt new patterns screen by screen rather than in a rewrite.

Most React applications we see in client work are not marketing sites. They are internal tools, customer portals, booking systems and dashboards: screens full of forms, tables and status messages that talk to an API. For these products, a new major version of React raises two practical questions. What does it give the team that is worth having, and what will the upgrade cost?

React 19 was announced as stable on 5 December 2024, after a release candidate in April. This article is written for CTOs, engineering managers and product owners who own an existing React codebase or are starting a new one in early 2025. It covers what Actions and the new form hooks change, how Server Components fit (and when they do not), which breaking changes tend to cost the most, and a step-by-step upgrade plan. If you are specifically weighing Server Components and the Next.js App Router, we cover that decision separately in our guide to React Server Components and the App Router; here the focus is on everything else.

What changed in React 19, in business terms

The React team’s release post lists a long set of features. For a typical line-of-business application, they fall into four groups.

1. Actions and form handling

An Action is an async function used inside a transition. React tracks whether it is pending, handles errors and supports optimistic updates. Three hooks build on this: useActionState wraps an Action and returns the latest result, a submit function and a pending flag; useFormStatus lets a nested component (such as a design-system submit button) read whether its parent form is submitting; and useOptimistic shows an expected result immediately and reverts if the request fails. Forms can now take a function as their action prop, and uncontrolled forms reset automatically after a successful submission.

2. Less boilerplate in components

Function components receive ref as an ordinary prop, so forwardRef is no longer needed (it is expected to be deprecated later). A context object can be rendered directly as a provider. Ref callbacks can return a cleanup function. None of these is dramatic, but in a large component library they remove a steady source of wrapper code.

3. Better diagnostics

Hydration mismatches are now reported as a single error with a diff rather than a stream of warnings, and errors are logged once instead of twice. The root APIs gained onCaughtError, onUncaughtError and onRecoverableError options, which matter if you send front-end errors to a monitoring service.

4. Document and resource handling

Components can render <title>, <meta> and <link> tags that React hoists into the document head; stylesheets can declare a precedence; and react-dom exposes preload, preinit, preconnect and prefetchDNS hints.

Server Components and Server Actions are also stable in React 19, with an important caveat from the React team: the low-level APIs that frameworks and bundlers use to implement them do not follow semantic versioning between 19.x minor releases. In practice, that means you adopt Server Components through a framework that pins compatible versions, not by wiring them up yourself.

How Actions change form-heavy screens

Consider the pattern most teams have written dozens of times: a form submits to an API, a useState flag disables the button, a try/catch sets an error message, and a success path resets fields and shows a toast. Each screen re-implements this slightly differently, which is where inconsistencies and bugs creep in, such as double submissions or a spinner that never clears after an error.

With React 19, the same screen can be expressed as one function passed to useActionState. According to the useActionState reference, the function receives the previous state and the submitted FormData, its return value becomes the new state, and the hook exposes an isPending flag. Repeated submissions are queued and run in order, each receiving the previous result. Expected failures such as validation errors are best returned as part of state and rendered inline; unexpected errors can be thrown to the nearest error boundary.

What this means for a team

  • Fewer bespoke patterns. Pending, error and success handling move into a shared, documented React mechanism instead of each developer’s preferred approach.
  • Design-system leverage. A shared SubmitButton can call useFormStatus and disable itself while its form is pending, without props threaded through every screen.
  • Perceived speed. useOptimistic makes it practical to show a new comment, status change or list item immediately and roll back on failure, which matters in tools people use all day.

Where it does not replace your existing tools

Actions do not replace a data-fetching and caching library such as React Query, or a schema validation library. Your API still needs server-side validation. Complex multi-step wizards with client-side validation rules may still be better served by a dedicated form library; the new hooks reduce boilerplate but do not provide field-level validation, dirty tracking or array fields. A sensible position for most teams is to use Actions for submission state and keep existing libraries for validation and server data caching, reviewing overlap after a few screens.

Should you upgrade now, adopt gradually or wait?

React 19 is a major version, and the right timing depends more on your dependencies and test coverage than on the features. The table below summarises how we would frame the decision for common situations in early 2025.

SituationRecommended approachMain reason
New product starting nowStart on React 19No migration cost; avoids an upgrade project in 12 months
Actively developed SPA on React 18 with good testsUpgrade in the next quarter, then adopt Actions screen by screenCost is mostly mechanical and codemod-assisted
App on React 18 with key libraries not yet declaring React 19 supportMove to 18.3, fix warnings, wait for library releasesPeer-dependency conflicts are the usual blocker
Older app with class components, string refs or legacy contextPlan a modernisation phase before the major upgradeRemoved APIs must be rewritten first
Stable app in maintenance mode, few changes plannedStay on 18.3 for now; schedule the upgrade with the next major featureLittle benefit relative to regression-testing cost
Next.js app planning to adopt the App RouterCombine with the framework upgrade planFramework and React versions move together

Questions to answer before committing

  1. Which of our direct dependencies (UI kit, form library, routing, charting, testing tools) declare React 19 support in their peer dependencies?
  2. Do we still use any removed APIs, and how many files are affected?
  3. Is our automated test coverage good enough to detect regressions in the main user journeys?
  4. Are we using TypeScript, and how strict is our configuration?
  5. Is there a feature on the roadmap that would benefit from Actions or optimistic updates, so the upgrade has a business reason?

If the answer to the last question is no and the codebase is stable, waiting is a legitimate choice. Staying on 18.3 is not a risk in itself in the short term; letting the gap grow across several major versions is.

Where the upgrade cost actually sits

The official React 19 upgrade guide lists the breaking changes. In our experience, effort clusters in a few areas.

Removed APIs

  • Root rendering: ReactDOM.render, ReactDOM.hydrate and unmountComponentAtNode are removed in favour of createRoot, hydrateRoot and root.unmount(). A codemod handles most cases.
  • findDOMNode: removed. Code (or old libraries) that relied on it must switch to DOM refs.
  • String refs and legacy context: both removed. Older class-component code using this.refs or contextTypes needs rewriting.
  • propTypes and defaultProps on function components: propTypes checks are silently ignored, and function components must use default parameters. Class components still support defaultProps.
  • Test utilities: act moves to the react package, other react-dom/test-utils functions now throw, and react-test-renderer is deprecated. Test suites built on shallow rendering are the most expensive part of some upgrades.

Behavioural changes

Errors thrown during rendering are no longer re-thrown; uncaught ones go to window.reportError and caught ones to console.error. If your error monitoring depended on the old behaviour, configure the new root options or you may silently lose front-end error reports. The new JSX transform is now required, which affects some older build set-ups. UMD builds are no longer produced, which matters if any page loads React with a script tag.

TypeScript

The type definitions changed alongside the runtime: useRef now requires an argument, ref callbacks cannot implicitly return a value, ReactElement props default to unknown rather than any, and the global JSX namespace is replaced by React.JSX. A separate codemod covers much of this, but strict TypeScript codebases should expect a few days of manual fixes.

Dependencies

Libraries that touched React internals or used findDOMNode can block the upgrade entirely until their maintainers release a compatible version. This is the item most likely to push your timeline, so inventory it first.

A step-by-step upgrade plan

The following sequence keeps the application releasable throughout. It assumes a single repository; in a monorepo, apply it per application and share fixes for common packages.

  1. Inventory. List React-related dependencies and their React 19 support status, and search the codebase for removed APIs (ReactDOM.render, findDOMNode, string refs, contextTypes, propTypes, react-test-renderer). Record the counts; they become your estimate.
  2. Establish a test baseline. Make sure the main user journeys have end-to-end or integration coverage and the suite is green. If coverage is thin, add smoke tests for login, the top five forms and the most-used reports before changing anything.
  3. Move to React 18.3. The upgrade guide recommends this intermediate step: 18.3 behaves like 18.2 but warns about APIs that React 19 removes. Release it, then fix the warnings in normal sprint work.
  4. Upgrade blocking dependencies. Update UI kits, routing, form and testing libraries to versions that support React 19. Replace any abandoned library that depends on removed APIs.
  5. Run the codemods. The React team publishes a migration recipe codemod for root rendering, string refs, the act import and related changes, plus a TypeScript codemod preset. Review the diff like any other pull request.
  6. Upgrade React and types. Install React 19, React DOM 19 and the matching type packages, fix compile errors, and run the full test suite.
  7. Check error monitoring. Deliberately trigger a render error in a staging build and confirm it reaches your monitoring tool.
  8. Release behind normal controls. Ship to staging, run regression and exploratory testing on high-traffic screens, then release with a clear rollback point (the previous build artefact).
  9. Adopt new patterns gradually. Agree a reference implementation of a form using useActionState and a shared submit button with useFormStatus, document it, and apply it as screens are touched for other reasons.

For illustration only: a 60-screen internal operations portal with TypeScript, a modern UI kit and no class components might find that steps 3 to 6 are largely mechanical, while one with an old date-picker that relies on findDOMNode might spend more time replacing that component than on React itself. The inventory in step 1 tells you which situation you are in.

This sequencing mirrors how we approach other framework upgrades, such as moving a backend to Java 21 and Spring Boot 3 without a big bang: separate the mechanical changes from the adoption of new patterns, and keep the product shippable between steps.

React Compiler and Server Components: what to plan, not rush

React Compiler

Alongside React 19, the React team has been developing React Compiler, a build-time tool that memoises components automatically so developers need fewer manual useMemo, useCallback and React.memo calls. As of the October 2024 beta announcement, it is a public beta, with a release candidate and general availability still ahead. The React team reports it running in production on Meta apps including Instagram, and strongly recommends adopting its ESLint plugin now, because the plugin flags code that breaks the Rules of React and works without the compiler installed.

Our recommendation for business apps in early 2025: add the ESLint rule to your pipeline and fix what it reports, because that code is fragile with or without the compiler. Trial the compiler on a non-critical part of the application if performance is a known problem, and wait for a stable release before relying on it across the product.

Server Components

Server Components change where code runs and where the security boundary sits, and they require a framework. If your product is a client-rendered SPA backed by a separate API team, upgrading to React 19 does not oblige you to adopt them. If you are on Next.js and considering the App Router, treat it as a separate architectural decision with its own caching and data-access implications, which we discuss in our article on Next.js performance and caching.

Team skills

The new hooks are small to learn, but transitions and Actions introduce a mental model that developers used to useEffect-driven data flows need to internalise. Budget a short internal workshop and a reference implementation rather than expecting each developer to learn independently. If you need extra capacity for the upgrade itself, our React developers join your existing backlog, repositories and review process, and migrating class components and legacy patterns is a normal part of that work.

Risks, costs and a readiness checklist

Main risks

RiskHow it shows upMitigation
Blocked by a dependencyPeer-dependency conflicts or runtime errors from a library using removed APIsInventory first; replace abandoned libraries before the upgrade
Lost error reportingRender errors stop appearing in monitoring after releaseConfigure root error options; test with a deliberate error in staging
Test suite breakageShallow-render tests and test-utils calls fail en masseMigrate to Testing Library progressively during the 18.3 phase
Pattern sprawlThree different form patterns coexist for yearsPublish one reference implementation and review against it
Scope creepThe upgrade becomes a redesign or a framework changeKeep the upgrade, App Router adoption and redesigns as separate work packages

Cost drivers

Cost scales with the number of removed-API usages, the size and style of the test suite, TypeScript strictness and the health of third-party dependencies, not with the number of screens alone. The inventory gives you an evidence-based estimate; ask any team quoting the work to show theirs.

Readiness checklist

  • Dependency list with React 19 support status for each React-related package
  • Count of removed-API usages and a named owner for each area
  • Green test suite covering the main user journeys
  • Application running on React 18.3 with deprecation warnings resolved
  • Error monitoring verified against the new error-handling behaviour
  • TypeScript codemod run and remaining errors triaged
  • Reference implementation for forms with Actions agreed and documented
  • Rollback plan: previous build artefact deployable within minutes
  • Decision recorded on React Compiler and Server Components, even if the decision is “not yet”

Frequently asked questions

Do we need Next.js or a server to use React 19?

No. Actions, useActionState, useFormStatus, useOptimistic, ref as a prop and the other client features work in a client-rendered single-page application. Server Components and Server Actions are the parts that require a framework with server support.

Will React 19 make our application faster?

Not automatically. Some improvements help, such as better Suspense behaviour and resource preloading, and optimistic updates improve perceived speed. Larger performance gains usually come from fixing data fetching, bundle size and rendering hot spots, or later from React Compiler once it is stable.

How long does a React 19 upgrade take?

It depends on the inventory: removed-API usages, test-suite style, TypeScript strictness and third-party libraries. A modern codebase may need little beyond codemods and testing; an older one with class components and findDOMNode-based libraries needs a modernisation phase first. Estimate from the inventory, not from screen count.

Should we replace our form library with the new hooks?

Usually not straight away. The new hooks handle submission state, pending flags and optimistic updates, but not field-level validation or complex field arrays. Use them for submission handling, keep your validation library, and review overlap after a few screens.

Can we stay on React 18 for now?

Yes, if the product is stable and no roadmap item benefits from the new features. Move to 18.3 and fix its warnings so the eventual upgrade is cheaper, and schedule the major upgrade with your next significant piece of front-end work.

Sources and methodology

Guidance reflects PoliteTech delivery experience. The external references below informed specific points in this article.

  1. React: React v19 (5 December 2024) — accessed 9 November 2026. Stable release date and the feature list: Actions, new hooks, form actions, ref as a prop, metadata, diagnostics and the semver caveat for Server Component bundler APIs.
  2. React: React 19 Upgrade Guide — accessed 9 November 2026. Upgrade steps (18.3 first, new JSX transform, codemods), removed APIs, error-handling changes and TypeScript type changes.
  3. React: useActionState reference — accessed 9 November 2026. Behaviour of useActionState with forms, argument order, sequential queuing and error-handling patterns.
  4. React: React Compiler Beta Release (21 October 2024) — accessed 9 November 2026. Compiler beta status, production use at Meta and the recommendation to adopt the ESLint plugin now.

Planning a React 19 upgrade for a live business app?

Share your dependency list and codebase context and we can help you build an inventory, estimate the work and add React engineers to your team if you need capacity.