BotDanny / react-stacked-center-carousel

A responsive, performant, well animated, swipeable, center mode carousel that stacks its slide
33 stars 12 forks source link

How to use StackedCarouselSlideProps #14

Closed dat0825 closed 1 year ago

dat0825 commented 1 year ago

I read document, but i don't understand what is StackedCarouselSlideProps? and how to use it? I think const Slide = React.memo(function (props: StackedCarouselSlideProps) is failed syntax in reactjs

BotDanny commented 1 year ago

StackedCarouselSlideProps is the typescript interface that contains all the fields that will be passed to your slide component. You need to use typescript, and const Slide = React.memo(function (props: StackedCarouselSlideProps) {return null}) Should work