2 thoughts on “SwiperJS React Video Tutorial | 2020

  1. amin says:

    Hi timo…
    thanks for video
    how we can use lazy load image in swiper js in react?
    swiper js documantion not usefull for me !

  2. Hi amin,
    can you try this?

    import { Swiper, Lazy } from 'swiper';
    Swiper.use([Lazy]);
    
    export default () => {
      return (
        <Swiper lazy>
          <SwiperSlide>Slide 1</SwiperSlide>
          <SwiperSlide>Slide 2</SwiperSlide>
          <SwiperSlide>Slide 3</SwiperSlide>
          <SwiperSlide>Slide 4</SwiperSlide>
        </Swiper>
      );
    };

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.