Tracks window resize event.
import { useResizeListener } from 'primereact/hooks';
Resize the browser window to view information about the resize event.
const [bindWindowResizeListener, unbindWindowResizeListener] = useResizeListener({
listener: (event) => {
setEventData({
width: event.currentTarget.innerWidth,
height: event.currentTarget.innerHeight,
})
}
});