typescript useref code example
Example 1: useref input typescript
const input = React.useRef<HTMLInputElement>(null);
Example 2: useref input typescript
const element = React.useRef<ElementType>(null);
Example 3: useref react typescript
const inputRef = React.useRef<HTMLInputElement | null>(null);