0.3.4 • Published 4 months ago
react-hook-resizable-element v0.3.4
react-hook-resizable-element
A React useEffect hook to allow resizing of elements based of some dependency.
Works with any HTMLElement that has the following attributes:
- ele.scrollHeight (read)
ele.style.height (read/write)
I wrote it specifically for teaxtarea, and checked it on
textarea
andp
elements.
Links
Credits
article in medium by Owen Herterich