The component writes strings into a log array: on each effect run it adds a connection message, and in cleanup it adds a disconnection message. Then the component programmatically changes the active room once from alpha to beta.
You need to determine the exact string that will be printed to stdout after rendering this broken variant.
StrictMode disabled is used.console.log, including fragment order and separators.cleanup closure uses the value of roomId captured during the corresponding useEffect run.StrictMode: disabled, root render via createRootClick a line and write what it prints. Explanation is optional.