> ## 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.

# useRoom

> useRoom is a convenience hook for the Daily room() method.

`useRoom() : Object | null`

Returns [room](/reference/rest-api/rooms/get-room#response-config), [domain](/reference/rest-api/domain), and [token](/reference/rest-api/meeting-tokens/create-meeting-token#body-properties) configuration properties, or `null` if no room has been set for the call.

## Return value

One of the following objects:

* An object detailing information about the [room](/reference/rest-api/rooms/get-room#response-config) that has been specified, but not yet joined
* An object detailing information about the current Daily [room](/reference/rest-api/rooms/get-room#response-config)

For the full shape of the returned object, see [`room()`](/reference/daily-js/instance-methods/room).

## Example

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

export const RoomName = () => {
  const room = useRoom();

  return <div>Room name: {room?.name}</div>;
};
```

## See also

<CardGroup>
  <Card title="daily-js methods" icon="code" iconType="solid">
    * [room()](/reference/daily-js/instance-methods/room)
  </Card>

  <Card title="REST APIs" icon="server" iconType="solid">
    * [Rooms](/reference/rest-api/rooms/get-room)
    * [Meeting tokens](/reference/rest-api/meeting-tokens/create-meeting-token)
    * [Domain](/reference/rest-api/domain)
  </Card>
</CardGroup>
