Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialAdam Fields
4,487 PointsThe CDN links for react are not working.
I followed along by going into react an pasting in the CDN link but it highlights red as an error whenI paste them in the index.html file
<!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 src="https://unpkg.com/react@16/umd/react.development.js"></script>
<script crossorigin src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script>
<script src="https://unpkg.com/babel-standalone@6/babel.min.js"></script>
<script type="text/babel" src="./app.js"></script>
</body>
</html>
Mod edit: corrected the markdown formatting. Remember to reference the Markdown Cheatsheet and preview your post before submitting.
1 Answer
Alex Koumparos
Python Development Techdegree Student 36,887 PointsHi Adam,
I copy-pasted your code (or at least what I think was your code after I fixed the markdown formatting) and it worked on my system.
Can you describe exactly what actual errors you got with your code? The only red I'm seeing is red underlining on "crossorigin" from the spell checker and then in Chrome dev tools the only red I'm seeing is a warning about the <input>
tag (but this is in the app.js
file, not index.html
). Neither of these is a problem with the CDN links.
Cheers
Alex
Roman Kovalchyk
Courses Plus Student 493 PointsRoman Kovalchyk
Courses Plus Student 493 PointsBy the way, I have similar problem. When I am trying to run code from tutorial it is not working