import { StreamCall } from '@stream-io/video-react-sdk';
export const App = () => {
const call = /* ... */;
return (
<StreamCall call={call}>
<MyUI />
</StreamCall>
);
};
StreamCall
The <StreamCall />
component is a declarative component wrapper around Call
objects. It utilizes the StreamCallProvider
to make the call and its state available to all child components.
General usage
Props
call
Type |
---|
Call |
Stream’s Call
instance propagated to the component’s children as a part of StreamCallContext
. Children can access it with useCall()
hook.
On this page: