React

Embla Carousel provides a wrapper for React that ensures seamless integration of the carousel into your React project and automatic cleanup on component unmount.

Start by installing the Embla Carousel npm package and add it to your dependencies.

-
npm install embla-carousel-react --save
+
npm install embla-carousel-react --save

The component structure

Embla Carousel provides the handy useEmblaCarousel hook for seamless integration with React. A minimal setup requires an overflow wrapper and a scroll container. Start by adding the following structure to your carousel:

@@ -472,7 +472,7 @@