Skip to content

useWinResize

Hook listening for Windows size changes

代码演示

Windows change count: 0
Basic usageListen for the windows dimensions

API

typescript
useWinResize(
  handler: (ev: Event) => void,
);

Params

PropertyDescriptionTypeDefault
handler处理函数(ev: Event) => void-

Source

Source · Document · Demo

Released under the MIT License.