> ## Documentation Index
> Fetch the complete documentation index at: https://docs.daily.co/llms.txt
> Use this file to discover all available pages before exploring further.

# useLocalParticipant

> Returns a local participant object.

<Badge color="yellow">Deprecated 0.17.0</Badge>

`useLocalParticipant() : Object`

## Return value

Returns an object with detailed information about the participant. See [participant properties](/reference/daily-js/types/daily-participant).

## Example

```jsx theme={null}
import { useLocalParticipant } from '@daily-co/daily-react';

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

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

## See also

<CardGroup>
  <Card title="Hooks" icon="code" iconType="solid">
    * [useParticipantProperty()](/reference/daily-react/use-participant-property) (preferred replacement)
    * [useLocalSessionId()](/reference/daily-react/use-local-session-id)
    * [useParticipant()](/reference/daily-react/use-participant)
    * [useActiveParticipant()](/reference/daily-react/use-active-participant)
    * [useActiveSpeakerId()](/reference/daily-react/use-active-speaker-id)
    * [useParticipantCounts()](/reference/daily-react/use-participant-counts)
    * [useParticipantIds()](/reference/daily-react/use-participant-ids)
    * [useWaitingParticipants()](/reference/daily-react/use-waiting-participants)
  </Card>
</CardGroup>
