Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ttys026/usesizeref


https://github.com/ttys026/usesizeref

Last synced: 8 days ago
JSON representation

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