This repository was archived by the owner on Dec 26, 2022. It is now read-only.
- Notifications
You must be signed in to change notification settings - Fork1
A React component that allows you to use a ResizeObserver to measure an element's size.
License
NotificationsYou must be signed in to change notification settings
ZeeCoder/react-resize-observer
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
A React component that allows you to use a ResizeObserver to measure an element's size.
yarn add @zeecoder/react-resize-observer# ornpm install --save @zeecoder/react-resize-observerconstApp=()=>(<ResizeObserver>{(ref,width,height)=>(<divref={ref}> My size is{width}x{height}</div>)}</ResizeObserver>);
- Usesresize-observer-polyfillinternally, which falls back to the native ResizeObserver, if available.
MIT
About
A React component that allows you to use a ResizeObserver to measure an element's size.
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.