Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

define a ref typescript

const parentInputRef = React.useRef<HTMLInputElement | null>(null);

interface input{
	parentInputRef?: React.RefObject<HTMLInputElement>,
}
 
PREVIOUS NEXT
Tagged: #define #ref #typescript
ADD COMMENT
Topic
Name
6+1 =