Resize Observer hook for React.
Argument | Type | Description | Default value |
---|---|---|---|
callback | ResizeObserverCallback | Function that needs to be fired on resize | undefined |
options | ResizeObserverOptions | An options object allowing you to set options for the observation | { box: "content-box" } |
Returns an array with one element
Return value | Type | Description |
---|---|---|
ref | CallbackRef | Ref which should be observed for Resize |
You can click on the floating discord icon at the bottom right of the screen and talk to us in our server.
Join our discord server! You can click the floating discord icon at the bottom right of the screen and chat with us!