react forwardref typescript current 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
}