0

What's wrong with my code

5th Mar 2022, 6:27 PM
Denzel TAKYI
Denzel TAKYI - avatar
3 Answers
+ 1
Thanks
5th Mar 2022, 9:47 PM
Denzel TAKYI
Denzel TAKYI - avatar
5th Mar 2022, 6:27 PM
Denzel TAKYI
Denzel TAKYI - avatar
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
5th Mar 2022, 6:40 PM
PanicS
PanicS - avatar