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"))
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.