Closed graememac closed 7 years ago
You could also just add a reference to the Carousel Component to externally expose the goToPage
function.
For example,
somefunction() {
this.refs.carousel.goToPage(selectedPage);
}
...
<Carousel
ref={"carousel"}
/>
… set by a slider or a dropdown menu