useRef example react typescript Example: useref react typescript const inputRef = React.useRef<HTMLInputElement | null>(null);