@tremendous/help
    Preparing search index...

    Function useWindowSize

    • Custom hook to get the current window size.

      This hook provides an object containing the current width and height of the window, and updates the values whenever the window is resized.

      Returns WindowSize

      • The current width and height of the window.
      const { width, height } = useWindowSize();

      return (
      <div>
      <p>Window width: {width}px</p>
      <p>Window height: {height}px</p>
      </div>
      );