use-chromecast-caf-receiver
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

Use Chromecast receiver npm npm type definitions

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

Package Sidebar

Install

npm i use-chromecast-caf-receiver

Weekly Downloads

0

Version

0.0.3

License

ISC

Unpacked Size

9.42 kB

Total Files

8

Last publish

Collaborators

  • onset