2.0.0-beta.4 • Published 5 years ago

@cassette/hooks v2.0.0-beta.4

Weekly downloads
18
License
MIT
Repository
github
Last release
5 years ago

@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!