useResizeObserver
: export legacy API at top-level for React Native (#65588).
useEvent
: a new utility that creates a stable callback function that has access to the latest state and can be used within event handlers and effect callbacks (#64943).useResizeObserver
: new and improved version of the utility (legacy API is still supported) (#64943).
- Method style type signatures have been changed to function style (#62718).
- Increase the minimum required Node.js version to v18.12.0 matching long-term support releases (#31270). Learn more about Node.js releases.
- Added new
observableMap
data structure anduseObservableValue
React hook (#60945).
- The
pure
HoC has been deprecated. Usememo
orPureComponent
instead (#57173).
useStateWithHistory
: Add a new hook to manage state with undo/redo support.
- Updated dependencies to require React 18 (45235)
useDisabled
: Refactor the component to rely on the HTMLinert
attribute (#44865).useFocusOutside
: Refactor the hook to TypeScript, rewrite tests using modern RTL and jest features (#45317).useFocusableIframe
: Refactor to TypeScript (#45428).
- Compose: Introduce an in-house
debounce()
utility, deprecate Lodash version (#43943). - Compose: Introduce in-house
compose
andpipe
utils (#44112).
useInstanceId
: refactor to TypeScript (#43790).
useDialog
: refactor to TypeScript (#43823).
useRefEffect
: Allowvoid
as a valid callback return type (#40798).
- Add
useDisabled
hook.
- Update the implementation of useResizeObserver to rely on the ResizableObserver API.
- Upgraded React components to work with v17.0 (#29118). There are no new features in React v17.0 as explained in the blog post.
withState
HOC has been deprecated. UseuseState
hook instead.
- Publish TypeScript types.
- Drop support for Internet Explorer 11 (#31110). Learn more at https://make.wordpress.org/core/2021/04/22/ie-11-support-phase-out-plan/.
- Increase the minimum Node.js version to v12 matching Long Term Support releases (#31270). Learn more at https://nodejs.org/en/about/releases/.
- Add the
useIsomorphicLayoutEffect
hook.
- Add the
useMediaQuery
anduseReducedMotion
hooks.
remountOnPropChange
has been removed.
remountOnPropChange
has been deprecated.
- Change how required built-ins are polyfilled with Babel 7 (#9171). If you're using an environment that has limited or no support for ES2015+ such as lower versions of IE then using core-js or @babel/polyfill will add support for these methods.