Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ttys026/usesizeref
https://github.com/ttys026/usesizeref
Last synced: 8 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/ttys026/usesizeref
- Owner: ttys026
- License: mit
- Created: 2019-09-25T02:31:04.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-09-25T02:36:54.000Z (over 5 years ago)
- Last Synced: 2025-01-20T13:08:46.385Z (13 days 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