A React hook that allows you to use a ResizeObserver to measure an element's size.
644
stars
42
forks
source link
Simply doesnt seem to want to work with a simple component. Crashes even in the simplest usage. #64
Closed
davesargrad closed 3 years ago
My code is quite simple.. and yet I can't seem to even get useResizeObserver working in the simplest scenario.
Crash:
I've also tried to pass in a ref (that i create using useref).. then i see a different failure (the call to useResizeObserver then just returns false.
My package.json has the following entry
"use-resize-observer": "^7.0.0",
Here is the actual div that i was going to resize..