How to use react-multi-carousel with typescript

1.7k Views Asked by At

I need a component exactly like below picture. react-multi-carousel With infinite mode

image code is here but i need that codes for typescript. and also copy codes not working! any body can help with an example in https://codesandbox.io/.

thanks a lot

1

There are 1 best solutions below

3
On

Recently I used react-multi-carousel with typescript.

Maybe that carousel's parent style is like this.

display: flex;

Carousel doesn't work with that style so you should change the parent style. It's not a problem caused by Typescript

display: block or add this style.

min-width: 400px; max-width: 400px;

it works for me.