๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
  • What would life be If we had no courage to attemp anything?
Development/React.js

[React] console.log(useRef)

by DevIseo 2023. 1. 25.

  • useRefํ•จ์ˆ˜๋Š” current์†์„ฑ์„ ๊ฐ€์ง€๊ณ  ์žˆ๋Š” ๊ฐ์ฒด๋ฅผ ๋ฐ˜ํ™˜
  • ์ธ์ž๋กœ ๋„˜์–ด์˜จ ์ดˆ๊ธฐ๊ฐ’์„ current์†์„ฑ์— ํ• ๋‹น
  • ์ด current ์†์„ฑ์€ ๊ฐ’์„ ๋ณ€๊ฒฝํ•ด๋„ ์ƒํƒœ๋ฅผ ๋ณ€๊ฒฝํ•  ๋•Œ์ฒ˜๋Ÿผ React ์ปดํฌ๋„ŒํŠธ๊ฐ€ ๋‹ค์‹œ ๋žœ๋”๋ง ์•ˆ๋จ
  • React ์ปดํฌ๋„ŒํŠธ๊ฐ€ ๋‹ค์‹œ ๋žœ๋”๋ง๋  ๋•Œ๋„ ๋งˆ์ฐฌ๊ฐ€์ง€๋กœ ์ด current ์†์„ฑ์˜ ๊ฐ’์ด ์œ ์‹ค๋˜์ง€ ์•Š์Œ

Reference

React Hooks: useRef ์‚ฌ์šฉ๋ฒ•

Hooks API Reference - React

'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

๋Œ“๊ธ€