title: swiper.js custom previous and next button does not work on click
body: <pre><code>import React, { useState, Fragment } from &quot;react&quot;;
  import { Swiper, SwiperSlide } from &quot;swiper/react&quot;;
  import SwiperCore, {
    Navigation,
    Pagination,
    EffectFade,
    EffectCoverflow,
    EffectCube,
  } from &quot;swiper&quot;;
  import &quot;swiper/swiper-bundle.css&quot;;
  import &quot;./App.css&quot;;
  import SlideContent from &quot;./SlideContent&quot;;
  import Person from &quot;./images/person.png&quot;;
  
  SwiperCore.use([
    EffectCoverflow,
    EffectCube,
    EffectFade,
    Navigation,
    Pagination,
  ]);
  
  const slides = [];
  for (let i = 0; i &lt; 5; i += 1) {
    slides.push(
      &lt;SwiperSlide key={`slide-${i}`}&gt;
        &lt;div className=&quot;round-item&quot;&gt;
          &lt;img src={Person} style={{ listStyle: &quot;none&quot; }} alt={`Slide ${i}`} /&gt;
        &lt;/div&gt;
      &lt;/SwiperSlide&gt;
    );
  }
  
  function App() {
    const [slide, setSlide] = useState(0);
    return (
      &lt;Fragment&gt;
        &lt;Swiper
          slidesPerView=&quot;auto&quot;
          initialSlide=&quot;2&quot;
          effect=&quot;coverflow&quot;
          navigation={{
            navigation: {
              nextEl: &quot;.review-swiper-button-next&quot;,
              prevEl: &quot;.review-swiper-button-prev&quot;,
            },
          }}
          grabCursor={true}
          centeredSlides={true}
          coverflowEffect={{
            rotate: 0,
            stretch: 0,
            depth: 100,
            modifier: 1,
          }}
          onSlideChange={(swiper) =&gt; {
            console.log(&quot;Slide index changed to: &quot;, swiper.activeIndex);
            setSlide(swiper.activeIndex);
          }}
        &gt;
          {slides}
        &lt;/Swiper&gt;
  
        &lt;SlideContent slide={slide}&gt;
          &lt;div className=&quot;review-swiper-button-prev &quot;&gt;&lt;/div&gt;
          &lt;div className=&quot;review-swiper-button-next &quot;&gt;&lt;/div&gt;
        &lt;/SlideContent&gt;
      &lt;/Fragment&gt;
    );
  }
  
  export default App;
  
  </code></pre>
  <p>CSS code</p>
  <pre><code>* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    background: #fff;
    font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
    font-size: 14px;
    color: #000;
    margin: 0;
    padding: 0;
  }
  
  .swiper-container {
    position: relative;
    width: 100%;
    padding-top: 50px;
    padding-bottom: 150px;
  }
  
  .swiper-slide {
    width: 180px;
    height: 180px;
    margin: 0 30px;
  }
  
  img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
  }
  
  .swiper-slide-active .round-item {
    opacity: 1;
    transform: scale(1.24);
    margin-top: 20px;
  }
  
  .round-item {
    width: 100%;
    height: 100%;
    opacity: 0.2;
    box-sizing: border-box;
    overflow: hidden;
    margin-top: 25px;
  }
  
  .swiper-container-3d .swiper-slide-shadow-left,
  .swiper-container-3d .swiper-slide-shadow-right {
    background-image: none !important;
  }
  
  .review-swiper-button-next {
    position: absolute;
    width: 20px;
    height: 20px;
    background-image: url(./images/next.png);
    background-repeat: no-repeat;
    background-size: 100% auto;
    background-position: center;
    right: 97px;
    top: 0;
    cursor: pointer;
  }
  
  .review-swiper-button-prev {
    position: absolute;
    width: 20px;
    height: 20px;
    background-image: url(./images/previous.png);
    background-repeat: no-repeat;
    background-size: 100% auto;
    background-position: center;
    left: 27px;
    top: 0;
    cursor: pointer;
  }
  
  </code></pre>
  <p>I have created custom arrows for previous and next. But when I click on any of the button, it does not move to next or previous slide. Am I missing something here. I didn't find anything in the docs as well.
  How to achieve this as I have searched everywhere but didnt get the solution. Hoping to get from here.</p>