Closed acao closed 1 year ago
Yeah, this would be a great improvement! As for the element type, HTMLElement
would probably be best, while not "correct" it is the closest to correct without assumptions which is my philosophy when building ratchet.
@mskelton awesome! I have submitted a PR, I hope it's a good start
This library worked for all of our class and function components, but I had to fork it to get
forwardRef
working - would you be interested in a PR that both helps with finding thecomponentName
and placing the declaration?I'm referring to this pattern:
the tricky part is we can't easily determine for the user what type of element to use for the first type arg