LiveKit docs › Hooks › useLocalParticipant

---

# useLocalParticipant

The `useLocalParticipant` hook returns the local participant and the associated state around the participant.

## Import

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

```

## Usage

```tsx
const { localParticipant } = useLocalParticipant();

```

## Properties

- **`options.room`** _(Room)_ (optional): The room to use. If not provided, the hook will use the room from the context.

## Returns

```typescript
{
  isMicrophoneEnabled: boolean;
  isScreenShareEnabled: boolean;
  isCameraEnabled: boolean;
  microphoneTrack: TrackPublication | undefined;
  cameraTrack: TrackPublication | undefined;
  lastMicrophoneError: Error | undefined;
  lastCameraError: Error | undefined;
  localParticipant: LocalParticipant;
}

```

---

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

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