Closed pkawula closed 2 years ago
I have found that when installing React 18 the onResize prop is not even called when you resize the window, however the useResizeDetector hook works properly.
onResize
useResizeDetector
Here's reproduction https://github.com/pkawula/resize-example
Remember to install dependencies with --legacy-peer-deps to avoid errors
--legacy-peer-deps
@pkawula thank you for your contributions to the project!
I want to give you some personal prize, but let's stick with the Contributor role for now 😄
I have found that when installing React 18 the
onResize
prop is not even called when you resize the window, however theuseResizeDetector
hook works properly.Here's reproduction https://github.com/pkawula/resize-example
Remember to install dependencies with
--legacy-peer-deps
to avoid errors