Skip to content

v.3.0.15 - The React package moves in

Compare
Choose a tag to compare
@davidjerleke davidjerleke released this 29 Jun 07:37
· 1086 commits to master since this release

🌟 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 separately.

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 this
import { useEmblaCarousel } from 'embla-carousel/react';

IMPORTANT Notes!

  • To anyone NOT using the useEmblaCarousel() hook. The class setup is no longer supported. Please migrate to the hook setup as soon as possible.
  • David here from the future! Some things have changed with the React implementation since this release. Make sure to read the release notes for version 4.0.0 on how to use Embla Carousel with React, if you're using version 4.0.0 and up.

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