๐Ÿ“šย Reference


๐Ÿ“œ Chapter


Class component

Function component

โ€ฃ

useState

ref

forwardRef

โ€ฃ

useRef


const ref = useRef(value)
//ref Object
{current: value}

// ์˜ˆ์‹œ
const ref = useRef("hi")
{current: "hi"}

const ref = useRef("hello")
{current: "hello"}

const ref = useRef("nice")
{current: "nice"}

์šฉ๋„


state์™€ ๋น„์Šทํ•˜๊ฒŒ ๊ฐ’์„ ์ €์žฅํ•˜๋Š” ๊ณต๊ฐ„์ด๋‹ค.