Skip to content

Can createAnimatedComponent accept functional components? #1527

Answered by tomekzaw
wcandillon asked this question in Q&A
Discussion options

You must be logged in to vote

Hey, if you want to animate functional components, you can always wrap them with React.forwardRef, as suggested in the updated version of the error message.

Replies: 6 comments 10 replies

Comment options

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

Comment options

You must be logged in to vote
1 reply
@jakub-gonet
Comment options

Comment options

You must be logged in to vote
3 replies
@mrousavy
Comment options

@mrousavy
Comment options

@ashuvssut
Comment options

Comment options

You must be logged in to vote
3 replies
@mrousavy
Comment options

@ashuvssut
Comment options

@franco-marini
Comment options

Comment options

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

Comment options

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

Answer selected by MatiPl01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
Converted from issue

This discussion was converted from issue #1527 on December 11, 2020 11:03.