Use Ref en React TypeScript

const inputRef = React.useRef<HTMLInputElement | null>(null);
Obedient Oyster