Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

react forwardref typescript

type MyProps = {
  name: string;
}

const CustomInput = forwardRef<HTMLInputElement, MyProps>(props) => {
  // access your props and ref here
}
 
PREVIOUS NEXT
Tagged: #react #forwardref #typescript
ADD COMMENT
Topic
Name
4+4 =