-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow React 18 as peerDependency #206
Comments
react-resize-detector/README.md Line 1 in 353457d
Support React 18 like it's 2022! 😄 Btw thank you for this package! This is awesome! |
|
#206 Add React 18 to peerDependencies
Thank you, guys. We have a complex situation here in Ukraine, so I'm a bit off from my OS projects. Hope you understand and continue using this library. |
Published in v7.0.1 |
Thank you so much! Stay safe |
is it possible to get the change
in v6.x as well? my team's project isn't yet ready to drop 2020 browser support. |
@k-funk
npm install resize-observer-polyfill --save-dev
import 'resize-observer-polyfill/dist/ResizeObserver.global'
import ResizeObserver from "resize-observer-polyfill"
window.ResizeObserver = ResizeObserver; |
Fantastic, thank you! Might be worth adding this to the README for others to find. |
React 18 is backward compatible, please, allow React version
^18.0
as peerDependency inpackage.json
https://reactjs.org/blog/2022/03/29/react-v18.html
The text was updated successfully, but these errors were encountered: