GitHub

Source

useSortedParticipants

The useSortedParticipants hook returns the participants sorted by importance.

Import

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

Properties

participantsArray<Participant>

Returns

Participant[]