react-use-measure
react-use-measure copied to clipboard
Memoize ref function
Using measure and passing it as a ref to a child memo component causing rerendering. Changes will help to prevent unnecessary rerendering and moving addListeneres and removeLlisteners out of a hook scope can be a light improvement