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
This package is nowofficially deprecated.
Use theuse-resize-observer hook instead.
If you want the old API, then create a react component, like so:
importuseResizeObserverfrom"use-resize-observer";exportdefaultfunction({ children}){const{ ref, width, height}=useResizeObserver();returnchildren(ref,width,height);}
Alternatively, see the last readme for v2here.
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.