useRoom
useRoom() : Object | null
useRoom is a convenience hook for the Daily room() method. It returns room, domain, and token configuration properties.
If a room has not yet been set for the call, useRoom resolves to null.
Return type
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