Embla Carousel v3.0.15 Release Notes
Release Date: 2020-06-29 // almost 4 years ago-
๐ฑ ๐ New Features
๐ The embla-carousel-react has now moved into the core package which will improve the maintainability of this project. For example, as soon as a new version is released react users won't have to wait for the react package to be published individually.
๐ฆ How to migrate from the React package
๐ฆ Please migrate as soon as possible. Start by uninstalling the react package and installing the core package like so:
NPM
npm uninstall embla-carousel-react --save npm install embla-carousel --save
YARN
yarn remove embla-carousel-react --save yarn add embla-carousel --save
๐ Change your import
// from this...import { useEmblaCarousel } from 'embla-carousel-react';// ...to thisimport { useEmblaCarousel } from 'embla-carousel/react';
๐ To anyone not using the useEmblaCarousel hook
๐ I'm sorry to say that the class setup is no longer supported. Please migrate to the hook as soon as possible.
I would very much appreciate
If you've starred the
Embla Carousel React
package, please take a moment to migrate your star โญ to the core package as well. I would appreciate that a lot.Thank you!
David