Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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 "https://unpkg.com/react@16/umd/react.production.min.js"></script> ---> <script crossorigin src="https://unpkg.com/react-dom@16/umd/react- dom.production.min.js"></script> <script src="./app.js"></script> </body> </html>

2 Answers

Check these two lines in your html:

added missing src=

<script crossorigin src="https://unpkg.com/react@16/umd/react.production.min.js"></script> 

removed space in react-dom

<script crossorigin src="https://unpkg.com/react-dom@16/umd/react-dom.production.min.js"></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