Skip to main content
Deprecated 0.17.0 useLocalParticipant() : Object

Return value

Returns an object with detailed information about the participant. See participant properties.

Example

import { useLocalParticipant } from '@daily-co/daily-react';

export const UseLocalParticipantDemo = () => {
  const localParticipant = useLocalParticipant();

  return <div>Hello, {localParticipant?.user_name}</div>;
};

See also