https://github.com/ttys026/usesizeref
https://github.com/ttys026/usesizeref
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ttys026/usesizeref
- Owner: ttys026
- License: mit
- Created: 2019-09-25T02:31:04.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-09-25T02:36:54.000Z (almost 6 years ago)
- Last Synced: 2025-03-15T04:49:07.331Z (4 months ago)
- Language: TypeScript
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.MD
- License: LICENSE
Awesome Lists containing this project
README
# useSizeRef
A react-hook that notify the size change of dom element
## Install
```
npm i use-size-ref --save
```## Usage
```
import { useSizeRef } from 'use-size-ref';const [ref, { width, height }] = useSizeRef();
console.log(width, height);
)
return (
```## LICENSE
MIT