LiveKit docs › Hooks › useParticipantContext

---

# useParticipantContext

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

## Import

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

```

## Returns

```typescript
Participant;

```

---

This document was rendered at 2026-06-07T11:32:57.396Z.
For the latest version of this document, see [https://docs.livekit.io/reference/components/react/hook/useparticipantcontext.md](https://docs.livekit.io/reference/components/react/hook/useparticipantcontext.md).

To explore all LiveKit documentation, see [llms.txt](https://docs.livekit.io/llms.txt).