I’m building a carousel for my portfolio using the react-responsive-carousel npm package. I’m having a hard time passing the props to the Carousel itself. I followed the examples and I’m not getting any errors but they aren’t being applied. Any tips?
Thank you in advance!
import { Carousel } from 'react-responsive-carousel';
import 'react-responsive-carousel/lib/styles/carousel.min.css';
<Carousel swipeable={true} showThumbs={false} stopOnHover={true} autoPlay={true} transitionTime={500} className="carousel">
I’ve tried changing around the props, trying to import the props directly and changing them into quotes. I’m lost.
2
Answers
You just have to put some elements inside the carousel as slides.
hope it helps you