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
React components are written in plain JavaScript with the help of JSX, and they contain the logic required to display a small part of your UI.
Resources
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
Instead, React components are written in
plain JavaScript with the help of JSX and
0:00
they contain the logic required to
display a small part of your UI.
0:04
The process of creating a React
component involves two steps.
0:10
First, you define the component
as a JavaScript function.
0:15
Then, you specify the React
elements that the component should
0:19
render by returning them.
0:24
To utilize and display the component,
we'll use a JSX tag.
0:26
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