ZeeCoder / use-resize-observer

A React hook that allows you to use a ResizeObserver to measure an element's size.
MIT License
644 stars 42 forks source link

Is there any reason we should save this as a dev dependency instead of a runtime dep? #95

Closed vedantroy closed 2 years ago

vedantroy commented 2 years ago

The README has:

yarn add use-resize-observer --dev
# or
npm install use-resize-observer --save-dev

I'm a little surprised this is the case, as I'd expect this to be a runtime dependency as well. Is there any reason we should install this as a dev dep?

ZeeCoder commented 2 years ago

See https://github.com/ZeeCoder/use-resize-observer/discussions/87