... useRef(null); const onButtonClick = () => { // `current` 指向已掛載到DOM 上的文字輸入元素 inputEl.current.focus(); }; return ( <> <input ...
確定! 回上一頁