useParticipantCounts(): Object
Return value
Returns an object with the following properties:Amount of participants where
hasPresence is falseDocumentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
useParticipantCounts is a convenience hook around the participantCounts() method.
useParticipantCounts(): Object
import { useParticipantCounts } from '@daily-co/daily-react';
export const useParticipantCountsDemo = () => {
const { present, hidden } = useParticipantCounts();
return (
<ul>
<li>{present} participants with presence</li>
<li>{hidden} participants without presence</li>
</ul>
);
};