Skip to Content

React 16 and 17 compatibility

Gram Elements now supports React 16 and 17 applications through a new Vite plugin that polyfills React 18 APIs.

Applications running older React versions can add a single line to their Vite config to automatically polyfill useSyncExternalStore, useId, useInsertionEffect, startTransition, useTransition, and useDeferredValue — all React 18 APIs used by Elements and its dependencies.

Features

  • React compatibility Vite plugin #1422  - Added reactCompat() Vite plugin for React 16 and 17 support. Import and add to the Vite config to polyfill React 18 APIs automatically. (Author: @adaam2 )

Last updated on

Build with
confidence.

Ship what's next.