platformer - v1.0.0
    Preparing search index...
    • React hook that tracks the current browser window size.

      The hook listens to the resize event and updates automatically.

      Returns { height: number; width: number }

      An object containing:

      • width: Current window inner width in pixels.
      • height: Current window inner height in pixels.
      const { width, height } = useWindowSize();