Skip to content

Box component that can take a ref #121

Answered by roginfarrer
brandonpittman asked this question in Q&A
Discussion options

You must be logged in to vote

TypeScript + forwardRef + polymorphism = not a fun time :(

This is true even without rainbow sprinkles. That said, I've got it working before. I recommend using this utility, it's the best typing I've seen for forward ref and polymorphism.

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@brandonpittman
Comment options

Answer selected by brandonpittman
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants