react-resize-hook
Version:
React resize observer hook
31 lines (16 loc) • 679 B
Markdown
Switch to using refs and intead of DOM elements! There were issues when, sometimes, the component would mount but the width and height would remain undefined. This happened because `element` was still null or undefined now this is fixed by using refs dirrectly.
Update react and typescript to latest versions
Removed build files from .gitignore since they were not published on npm
Fix invalid hook, moved react as dev dependency
Change readme title and add changelog :)
Fix bad module name in typing file
Change initial value of `width` and `height` from 0 to `undefined`
Initial version