arrow_backBACK TO DRILLS
Blue Beltuseeffect
Effect cleanup runs before next setup
“A component has a useEffect that depends on roomId and returns a cleanup function. The roomId prop changes from "general" to "music". What sequence does React follow?”