react-element-size
React hook to get size of any element.
Installation
yarn add react-element-size
Usage
;; { const app = ; const box = ; return <div className="App" ref=appsetRef> <span>JSON</span> <div className="Box" ref=boxsetRef> <span>JSON</span> </div> </div> ;}