Answers for "react forwardref typescript"

1

react forwardref typescript

type MyProps = {
  name: string;
}

const CustomInput = forwardRef<HTMLInputElement, MyProps>(props) => {
  // access your props and ref here
}
Posted by: Guest on December-03-2020

Code answers related to "TypeScript"

Browse Popular Code Answers by Language