-
Would like an example of how to properly type renderItem(). I get a type complaint on CarouselRenderItem. Currently have.. const renderX = ({item} : {item : X}) => {…} |
Beta Was this translation helpful? Give feedback.
Answered by
ajp8164
Jan 9, 2023
Replies: 1 comment
-
Needed to have |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ajp8164
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Needed to have
ReactElement
as the return type, not ReactNode.