Perfect Javascript Calculator Won't Pass Tests

Trying to solve the javascript calculator for the certification and nobody can get these tests to pass…

I found the answer in a post by jeremy.a.gray

I had to change the external scripts in codepen to use react17 instead of 18.

This is can be done by changing


And then changed the code from

const root = ReactDOM.render(document.getElementById("root")); root.render(<Calculator />);


ReactDOM.render(<Calculator />, document.getElementById("root"))