Skip to content
Advertisement

Tag: react-slick

slickGoTo doesn’t change active slide

I added slider using react-slick to my React app. For <Slider> I added ref, and I’m trying use it to change active slide: but I got an error: TypeError: sliderRef.slick is not a function Why doesn’t this work for me? “react”: “^16.6.3”, “react-slick”: “^0.27.12”, Answer According to react-slick’s slickGoTo() documentation, you need to pass a function as the ref. Something

Advertisement