Skip to main content
Version: v3.0

Context Provider

Wrap your application in ContextProvider.

Don't call usePlayer() and useSystem() on the parent component.

src/App.tsx
import React from 'react'

// libs
import { ContextProvider } from 'pixel-streaming'

import CustomContainer from './CustomContainer'

const App = () => (
<ContextProvider>
<CustomContainer />
</ContextProvider>
)

export default App