const inputRef = React.useRef(null); inputRef.current?.focus(); return useRef 를 사용하여 직접 접급할 수 있다. https://ko.reactjs.org/docs/hooks-reference.html#useref Hooks API Reference – React A JavaScript library for building user interfaces ko.reactjs.org https://ko.reactjs.org/docs/refs-and-the-dom.html#when-to-use-refs Ref와 DOM – React A JavaScript library for building user interfaces ko.reactjs.org sa..