API Introduction

State manipulation

Elements state observers

  • useWindowSize: This hook returns an object containing the window's width and height.

  • useElementSize: This hook returns an object containing the width and height of an element ref.