forwardref react typescript to reactjs code example
Example: react forwardref typescript
type MyProps = {
name: string;
}
const CustomInput = forwardRef<HTMLInputElement, MyProps>(props) => {
// access your props and ref here
}
type MyProps = {
name: string;
}
const CustomInput = forwardRef<HTMLInputElement, MyProps>(props) => {
// access your props and ref here
}