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