The example below shows you how to properly use the useRef hook with ... when the app launches useEffect(() => { nameRef.current?.focus(); } ...
確定! 回上一頁