use-stream-pixel
v1.1.4
Published
A React hook for interacting with stream pixel iframes and managing messages.
Downloads
14
Maintainers
Readme
My React Library
A React hook for interacting with iframes and managing messages using postMessage
.
Installation
npm install use-stream-pixel
# Usage
```javascript
import { useIframeStream } from 'my-react-library';
function App() {
const { start, iframeRef, handleToggleStream, handleSendCommand, addListener, removeListener } = useIframeStream();
// Your component logic...
}