when I import
import { Carousel } from "react-responsive-carousel";
and use it like bellow:
<Carousel
autoPlay
infiniteLoop
showStatus={false}
showIndicators={false}
showThumbs={false}
interval={5000}
></Carousel>
TypeError: Super expression must either be null or a function, not undefined
I was expect carousel for banner in my website
With 'use client' whole your file become CSR If you don't want that, Use this solution:
1.Create file named by : Carousel.tsx
2.Write this code below:
3.Then in your file:
Now it's work on server-side and only Carousel is in CSR