npm / react-use
react-use
What changed in react-use 14 to 17, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-23.
7 breaking2 new APIs and options2 behavior and defaults4 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initreact-use 171 changes
Breaking changes 1
The useNetwork hook was renamed to useNetworkState, so developers must update their hook references.
react-use 162 changes
Breaking changes 2
The comps directory was renamed to component.
The create* factories moved to the factory subdirectory; direct imports should use this path.
react-use 1510 changes
Breaking changes 2
The useMeasure hook no longer uses resize-observer-polyfill.
Keeps the previous result or error when called multiple times.
New APIs and options 2
Adds a remove feature for removing the stored value.
Adds a sensor hook for tracking scratch interactions.
Behavior and default changes 2
Adds dependency inference for the effect.
Works on the server and mocks the hook on the server or when ResizeObserver is unavailable.
Fixes and other changes 4
Improves the typings for useAsyncFn and useAsync.
Improves serialization handling and uses undefined instead of null for an empty value.
Defaults values to zeros when they have not been set.
Removes set dependencies and makes the has method use the latest set object.
react-use 142 changes
Breaking changes 2
The hook now returns only functions in the order stop, start, isActive.
Starting or stopping the loop no longer re-renders the parent component.