JavaScript React Basics First Steps in React Render an Element

for some reason the react cdn appears to not be working

<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Scoreboard</title> <link rel="stylesheet" href="./app.css" /> </head>

<body> <div id="root"></div>

----> <script crossorigin ""></script> ---> <script crossorigin src=" dom.production.min.js"></script> <script src="./app.js"></script> </body> </html>

2 Answers

54,333 Points

Check these two lines in your html:

added missing src=

<script crossorigin src=""></script> 

removed space in react-dom

<script crossorigin src=""></script>

I think I fixed it for some reason the cross origin was messing it up so I took it out is that needed ?

I checked the src they are both there