React hook for interacting with the Spotify Web Playback SDK.
Note: This is using the new React Hooks API Proposal which is subject to change until React 16.7 final.
You'll need to install
react
,react-dom
, etc at^16.7.0-alpha.0
npm install ?
import useSpotifyWebPlaybackSdk from "?";
function App() {
const [player, deviceId, isReady] = useSpotifyWebPlaybackSdk({
name: "NotSpotify Player",
getOAuthToken: () => token,
});
}
Check out the best Spotify Playback SDK docs for reference or feel free to open an issue.