onSwiper in thumbnail error when using React Typescript #5033
Unanswered
LinhNguyen1059
asked this question in
Q&A
Replies: 2 comments 2 replies
-
Fkn 30k stars library without ts example 🙄 I fix it: |
Beta Was this translation helpful? Give feedback.
2 replies
-
Hi, proper way to do that:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm just working with swiper, I'm using typesript but got an typescript error when using
onSwiper
forSwiper
thumbnail.Bellow is my typescript issue show.
Here is my code in React:
How can I define a type for state or fix that?
Thank you :))
Beta Was this translation helpful? Give feedback.
All reactions