typescripy react 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);
const input = React.useRef<HTMLInputElement>(null);
const element = React.useRef<ElementType>(null);