I have the following useEffect call in React:
const containerRef = useRef(null); useEffect(() => { function handleResize() { const {offsetWidt