const App = () => { const inputRef = useRef(null); useEffect(() => {= inputRef.current.focus(); }, []); return ( <> <input ref={inputRef} /> </> ); }; // input태그에 포커스를 맞춘다