Live switch Jitsi

How can I switch between rooms using different credentials?

My goal is to allow users to click to go to next room.

I’m using React.