The domRef definition that was there would have a nonsensical type like React.RefObject<"input"> when it should be referring to the actual element like React.RefObject<HTMLInputElement> based on TComponent. This would necessitate doing ugly casts like
The domRef definition that was there would have a nonsensical type like
React.RefObject<"input">
when it should be referring to the actual element likeReact.RefObject<HTMLInputElement>
based onTComponent
. This would necessitate doing ugly casts like