Help articles

React 19 and Sanity

Sanity Studio requires React 19.2.2 or later, and Next.js 15 with React 19 is supported.

The Sanity CLI prints a compatibility warning during sanity init when it finds Next.js 15 and React 19 in your project. That combination is supported. React 19 is no longer an opt-in for Sanity Studio; it is the minimum requirement.

React version requirements

Sanity Studio v5 raised the minimum React version, and v6 keeps it. The sanity package requires react and react-dom at ^19.2.2. React 18 does not satisfy that range, and neither do React 19.0 and 19.1.

A Studio on the current version has these dependency ranges:

The requirement landed in Sanity v5. Sanity v4 and earlier accept ^18 || ^19, so a Studio still on v4 runs on either major.

Upgrade an existing Studio

To move a Studio from React 18 to React 19, follow Studio v4 to v5. It covers clearing React 18 deprecation warnings under strict mode, the install steps for React and sanity, and the TypeGen type names that change along the way. From there, Studio v5 to v6 takes you to the current major version.

Plugins

Official Sanity plugins support React 19. If you maintain a third-party plugin that declares React 18 only, it will not work in a v5 or v6 Studio. Widen its peer dependency range and publish a new version; the notes for plugin authors in Studio v4 to v5 have the range to use.

Was this page helpful?