brainhubeu / react-carousel

A pure extendable React carousel, powered by Brainhub (craftsmen who ❤️ JS)
https://brainhub.eu/
MIT License
1.07k stars 164 forks source link

Changing carousel property during runtime #578

Closed briankosw closed 4 years ago

briankosw commented 4 years ago

Is there a way to change carousel properties, such as the slidesPerPage, during runtime? I tried to change the state by using this.setState() but the change doesn't reflect on the carousel.

piotr-s-brainhub commented 4 years ago

@briankosw

Why did you close this issue?

briankosw commented 4 years ago

I asked the question prematurely and realized it was a stupid question. My bad!

piotr-s-brainhub commented 4 years ago

No problem.

react-carousel supports a controlled component.