score:2

Accepted answer
function ChildComponent ({rooms}) {
  const [rooms, setRooms] = useState(rooms); 

  useEffect(() => {
    console.log('props received ' + JSON.stringify(rooms));
  },[rooms]);

Related Query

More Query from same tag