Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resizeSensor.js is not on npm #117

Open
hbaig123 opened this issue Jun 16, 2020 · 1 comment
Open

resizeSensor.js is not on npm #117

hbaig123 opened this issue Jun 16, 2020 · 1 comment

Comments

@hbaig123
Copy link

Can we download resizeSensor.js from npm. Is there any plugin on npm for resizeSensor

@DamianMullins
Copy link

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';

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants