// import the module
import SwiperCore, { Autoplay } from 'swiper';
// initialize the module
SwiperCore.use([Autoplay]);
// set up
<Swiper
spaceBetween={0}
effect = {"fade"}
slidesPerView={1}
navigation
pagination={{
clickable: true,
dynamicBullets: true
}}
onSwiper={(swiper) => console.log(swiper)}
onSlideChange={() => console.log('slide change')}
autoplay = {true} // here
speed = {1000}
loop = {true}
>