useResizeObserver 
Dynamically get the size change of Dom elements.
Code demonstration 
API 
typescript
useResizeObserver(target, callback, {
  box: UseResizeObserverOptions,
})Params 
| 参数 | 说明 | 类型 | 默认值 | 
|---|---|---|---|
| target | DOM 节点或者 Ref 对象 | () => Element | Element | JSX.Element | - | 
| options | 额外的配置项 | UseResizeObserverOptions | - | 
Options 
| 参数 | 说明 | 类型 | 默认值 | 
|---|---|---|---|
| box | 盒模型模式 | ResizeObserverBoxOptions | content-box |