Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed React Basics!
You have completed React Basics!
Preview
Since JSX is a syntax extension to the JavaScript language, it accepts any valid JavaScript expressions written inside curly braces. This allows you to make your JSX more dynamic.
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
The first rule we'll cover is JSX
must return a single root element.
0:00
Let me show you what they mean by this.
0:03
Applications usually consist
of more than just a heading.
0:05
So let's add a p tag
under our heading tag.
0:09
To write our JSX across multiple lines,
I'll wrap our h1 tag in parentheses.
0:14
Inside the p tag,
I'll write I just learned how to
0:25
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