I've finally found a solution: const inputRef = useRef() as React.MutableRefObject<HTMLInputElement>;. It works for me:
確定! 回上一頁