Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Daily React
useParticipantCounts is a convenience hook around the participantCounts() method.
useParticipantCounts(): Object
hasPresence
true
false
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> ); };