Ref (1) 썸네일형 리스트형 useRef()로 DOM 요소에 접근하기 예시import React, { useRef } from "react";const InputExample = () => { const inputRef = useRef(null); const handleGetValue = () => { if (inputRef.current) { console.log("Input 값:", inputRef.current.value); } }; return ( 값 가져오기 );};export default InputExample; 이전 1 다음