function TextInputWithFocusButton() { const inputEl = useRef<HTMLInputElement>(null); // 在ts中需要定義ref的屬性類型 const onButtonClick = () => ...
確定! 回上一頁