@uppy/react's new useUppyState breaking support for React 16/17?

Hi, I’m using React 16.14.0, and I assume React 16 should work with Uppy since React 16 it is a peerDependency?

I get the following error from Webpack after upgrading @uppy/react to 3.2.0 (latest).


ERROR in ./node_modules/@uppy/react/lib/useUppyState.js 5:9-29
export 'useSyncExternalStore' (imported as 'useSyncExternalStore') was not found in 'react' (possible exports: Children, Component, Fragment, Profiler, PureComponent, StrictMode, Suspense, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, cloneElement, createContext, createElement, createFactory, createRef, forwardRef, isValidElement, lazy, memo, useCallback, useContext, useDebugValue, useEffect, useImperativeHandle, useLayoutEffect, useMemo, useReducer, useRef, useState, version)
 @ ./node_modules/@uppy/react/lib/index.js 8:0-60 8:0-60

It seems that useSyncExternalStore is not available before React 18.

I’m using DashboardModal from @uppy/react.

Edit: reproduction is here: https://codesandbox.io/p/sandbox/stoic-easley-g6lstz
Opened an issue here: @uppy/react's new useUppyState breaking support for React 16/17? · Issue #4783 · transloadit/uppy · GitHub

Previously: Couldn’t reproduce the issue in Codesandbox using Parcel, and was hoping someone else also has this issue before I try to reproduce with a webpack setup. Since it’s not an issue in Parcel, I figured it might be something else I’m doing wrong?