TypeScript-friendly useSize from @react-hook/resize-observer.
So you went to https://www.npmjs.com/package/@react-hook/resize-observer and copied useSize, but it has a bunch of typescript errors, and it pisses you off (I know it does).
…TypeScript-friendly useSize from @react-hook/resize-observer.Read More »
TypeScript-friendly useSize from @react-hook/resize-observer. Read More »