@cassette/hooks

2.0.0-beta.4 • Public • Published

@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 surrounding fullscreenContext
  • usePlayerContext - used to read and update the state of the surrounding playerContext

Find full documentation here!

Package Sidebar

Install

npm i @cassette/hooks

Weekly Downloads

2

Version

2.0.0-beta.4

License

MIT

Unpacked Size

92.8 kB

Total Files

25

Last publish

Collaborators

  • benwiley4000