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
Letβs go over the key concepts you learned in this stage
Resources
- React Documentation
- Thinking in React
- Vite Documentation
- Writing Markup with JSX
- The Rules of JSX
- JavaScript in JSX with Curly Braces
Treehouse Courses and Workshops
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
Congratulations on completing your first
stage of your React learning journey,
0:00
in this stage we focused on
setting the foundation for
0:05
React by building a solid
understanding of its core concepts.
0:08
We learned that React is
a JavaScript library for
0:12
building user interfaces,
it allows us to create reusable, and
0:16
modular UI elements making our code
more maintainable and efficient.
0:20
I then focused on getting you all set up
to code along with me, we went through
0:25
all the files in the project and showed
you how to set up the development server.
0:31
Initially, there was nothing
visible in the browser since our
0:36
main.jsx file didn't
contain any React elements.
0:40
To address this, we took our first steps
into creating React elements using JSX,
0:46
an extension of JavaScript that allows us
to write HTML-like syntax within our code.
0:52
We learned that React elements are plain
JavaScript objects that describe
1:00
the elements to be displayed in the UI.
1:05
In order to see our React elements on
the page, we covered the essential
1:08
step of rendering these elements using
the createRoot and root.render methods.
1:14
These lines of code are crucial,
as they ensure our React elements
1:21
are properly rendered to the DOM,
making them visible in the browser.
1:25
Continuing our exploration of JSX,
1:31
we discussed the three
fundamental rules of JSX.
1:33
Return a single root element,
closing all the tags and
1:38
camelCase all most of the things.
1:43
Furthermore, we learned
how to embed JavaScript
1:47
code within our JSX syntax
through JSX expressions,
1:51
this powerful feature allows us to
dynamically generate content and
1:55
perform calculations directly
within our JSX element.
2:01
We covered a lot of ground in this stage,
establishing a strong foundation in React,
2:07
if you feel the need for a refresher,
don't hesitate to revisit those videos.
2:12
In the upcoming stage of
our learning journey,
2:18
we'll be writing React components,
which are at the heart of React.
2:21
I'll see you in the next video.
2: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