react-measure
Advanced tools
Changelog
2.0.1
Observe and disconnect ResizeObserver in ref callback
Changelog
2.0.0
Complete rewrite. Check README for new docs.
Most transitions from the old API should be easy. You just need to pass a ref callback down now. If you have any issues please feel free to file an issue.
Changelog
1.4.4
Use ResizeObserver.default if available. This fixes older browsers in the local dev environment.
Changelog
1.4.2
Only require ResizeObserver polyfill when window is available