M
M
Mdmitr2020-02-22 10:08:28
JavaScript
Mdmitr, 2020-02-22 10:08:28

How to get the total number of slides in react-slick slider?

Hello, I want to make a slide counter on react-slick
and I need to find out the total number of slides
I searched through the documentation and found nothing
link https://codesandbox.io/s/54r56zxj0n

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene, 2020-02-27
@Mdmitr

you can find out the total number of slides only in very stubborn ways
https://codesandbox.io/s/react-slick-33v2z
the counter, in my opinion, it’s better to do it external
https://codesandbox.io/s/react-slick-nyjxq

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question