Load new room in Jitsi on demand

Hi. I have a React app and I want students to be able to view different live strem lectures at the click of a button. I tried using the sdk and noticed the Jitsi React component wont rerender with the page. Any ideas on how to allow uses to switch room at the click of a button?