React YouTube Playlist v2 Release
React YouTube Playlist version 2 is out! 🥳
Let’s discuss the highlights.
Breaking Changes
This release comes with one breaking change.
- Replace default
import
with namedimport
. This change provides better compatibility with Node and Babel-like tools.
Other Changes
- Replace EmotionJS dependency with inline styling.
- Convert all configuration files to TypeScript.
- Change the loading spinner’s color to improve its contrast on dark and light background schemes.
How to Update the React YouTube Playlist Package
Here are the steps required to upgrade to the latest version:
-
Install the latest version
Alternatively, you can use Yarn or pnpm like so:
-
Update the package’s
import
syntaxReplace the package’s default
import
statement with the namedimport
syntax like so:
How to Use the React YouTube Playlist Package
See the complete project-based guide to learn how to add the YouTubePlaylist
package to your React applications. You can use the library with Vite, NextJS, Remix, or any other React app.