- useRefํจ์๋ current์์ฑ์ ๊ฐ์ง๊ณ ์๋ ๊ฐ์ฒด๋ฅผ ๋ฐํ
- ์ธ์๋ก ๋์ด์จ ์ด๊ธฐ๊ฐ์ current์์ฑ์ ํ ๋น
- ์ด current ์์ฑ์ ๊ฐ์ ๋ณ๊ฒฝํด๋ ์ํ๋ฅผ ๋ณ๊ฒฝํ ๋์ฒ๋ผ React ์ปดํฌ๋ํธ๊ฐ ๋ค์ ๋๋๋ง ์๋จ
- React ์ปดํฌ๋ํธ๊ฐ ๋ค์ ๋๋๋ง๋ ๋๋ ๋ง์ฐฌ๊ฐ์ง๋ก ์ด current ์์ฑ์ ๊ฐ์ด ์ ์ค๋์ง ์์
Reference
'Development > React.js' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
npm ERR! Cannot read properties of null (reading 'edgesOut') (0) | 2023.05.14 |
---|---|
[React] font ์ ์ฉ (0) | 2023.01.28 |
[React] ref, useRef (0) | 2023.01.24 |
[React] port ๋ฒํธ ๋ณ๊ฒฝํ๊ธฐ (0) | 2023.01.23 |
[React] React Hook API (0) | 2023.01.18 |
๋๊ธ