๋ฐ์ดํ„ฐ๊ฐ€ ๋Š˜์–ด๋‚˜๋„ ์ผ๊ด€๋œ ๋†’์ด ๊ฐ„๊ฒฉ ์œ ์ง€ํ•˜๊ธฐ

ยท React
๊ธฐ์กด useEffect(() => { const setBoxHeight = () => { if (detailBoxRef.current) { const itemHeight = 4.5; const itemCount = groupedData.reduce((count, group) => count + group.data.length, 0); const calculatedHeight = itemHeight * itemCount + 3 * itemCount; detailBoxRef.current.style.height = `${calculatedHeight}vh`; } }; setBoxHeight(); }, [groupedData, detailBoxRef]); ์ˆ˜์ •ํ›„ useEffect(() => { if (deta..
becky(์ง€์€)
'๋ฐ์ดํ„ฐ๊ฐ€ ๋Š˜์–ด๋‚˜๋„ ์ผ๊ด€๋œ ๋†’์ด ๊ฐ„๊ฒฉ ์œ ์ง€ํ•˜๊ธฐ' ํƒœ๊ทธ์˜ ๊ธ€ ๋ชฉ๋ก