GitHub

Source

useParticipantContext

Ensures that a participant is provided via context. If not inside a ParticipantContext, an error is thrown.

Import

import { useParticipantContext } from "@livekit/components-react";

Returns

Participant;