0
What's wrong with my code
3 Answers
+ 1
Thanks
0
You need to write your react in new script tag, not in script tag where you link react dom.
Also it is ReactDOM not ReactDom when you use cdn.
And you dont need to use document.write, render of react dom will write this to page.
ReactDOM.render(whatToRender,whereToRender)
https://code.sololearn.com/W1yU024Zftr7/?ref=app