onChange is also called once when observation starts. It takes no argument; read what you need from the DOM in the handler.
childrenReactNodeonChange() => void| Prop | Type | Default |
|---|---|---|
children | ReactNode | - |
onChange | () => void | - |
import { Resize } from '@k8ordo/ui';<Resize onChange={remeasure}>
<div>…</div>
</Resize>