use-chromecast-caf-receiver
v0.0.3
Published
React hook to use the Chromecast receiver SDK in your project
Downloads
3
Maintainers
Readme
Use Chromecast receiver
React hook to use the Chromecast receiver SDK in your project.
Installation
npm install use-chromecast-caf-receiver
How to use
import { useChromecastReceiver } from 'use-chromecast-caf-receiver'
const Component = () => {
const { cast } = useChromecastReceiver()
return <div>{cast === null ? 'Loading' : 'Cast receiver sdk is loaded'}</div>
}
Development
- Install dependencies:
npm ci
- Build the package:
npm run dev