Skip to main content
useRoom() : Object | null Returns room, domain, and token 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 that has been specified, but not yet joined
  • An object detailing information about the current Daily room
For the full shape of the returned object, see room().

Example

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

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

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

See also

daily-js methods