react-dimensions-hook
This package allows you to measure the size of any HTML element inside one of your React functional components using hooks.
Usage
;
Features
- Uses react hooks
- TypeScript compatible
- Uses react-observer-polyfill to detect all changes in size
Attribution
While this package was written from scratch, inspiration was gained from react-dimensions, react-sizeme, and react-use-dimensions