This course will be retired on March 31, 2024. We recommend "React Basics" for up-to-date content.
Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Start a free Courses trial
to watch this video
JSX is an extension to the JavaScript language that uses a markup-like syntax to create React elements. Most React developers write their UI using JSX because it resembles writing HTML.
babel-standalone
<script src="https://unpkg.com/babel-standalone@6/babel.min.js"></script>
Resources
The CDN-based approach is not useful in a production environment as soon as you start using JSX. The Babel script is ~800KB in size, which for most use cases, is too large of a download to be practical. In addition, there's the overhead in the browser of transpiling JSX into JavaScript.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up