@cassette/hooks
v2.0.0-beta.4
Published
A simple, clean, and responsive visual wrapper for the HTML audio tag, built with React.
Downloads
61
Maintainers
Readme
@cassette/hooks
@cassette/hooks
provides React Hooks for consuming playerContext and fullscreenContext from inside function components. It requires React 16.8.0 or greater.
Installation
npm install @cassette/hooks
Hooks included:
useFullscreenContext
- used to read and update the state of the surroundingfullscreenContext
usePlayerContext
- used to read and update the state of the surroundingplayerContext