Answers for "Carousel image show"

-1

Carousel image show

import Carousel from 'flat-carousel';

const images = [
    { src: 'some image' }
];

const MyCarousel = () => (
    <Carousel>
        {images.map((image, index) => (
            <div
                key={index}
                className="demo-item"
                style={{ backgroundImage: 'url(' + image.src + ')' }}
            />
        ))}
    </Carousel>
);
Posted by: Guest on April-07-2022

Code answers related to "Carousel image show"

Browse Popular Code Answers by Language