useWindowPosition

provides the current location of the window on the users monitor

Demo

Move your window around

X: 0, Y: 0

Usage

const { const screenX: numberscreenX, const screenY: numberscreenY } = 
function useWindowPosition(): {
    screenX: number;
    screenY: number;
}
useWindowPosition
()