resizeSensor.js is not on npm
hbaig123 opened this issue · comments
hbaig123 commented
Can we download resizeSensor.js from npm. Is there any plugin on npm for resizeSensor
Damian Mullins commented
I have used css-element-queries
in the past which exposes ResizeSensor but the package contains other code which bulks out the size a little. Recently I came across resize-sensor
which has extracted ResizeSensor
from the css-element-queries
package and applied optimisations and has a smaller bundle size.
Example imports:
import { ResizeSensor } from 'css-element-queries';
import ResizeSensor from 'resize-sensor';