Code will not work

When I run my code on my computer in class it does not work. When my teacher runs the code on her computer it works. Why?

It seems to work for me as well, which is weird because you seem to be using React. The problem is that the basic HTML Repl template isn’t set up for React, you should be creating a Repl with the React template.