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
- Your First Component
 - Using a component
 - Break the UI into a component hierarchy
 - Nesting and organizing components
 
React Developer Tools Extension
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
                      In this stage, we continued our learning
journey by jumping into React Components.
                      0:00
                    
                    
                      Components are the building
blocks of a React application,
                      0:05
                    
                    
                      allowing us to create reusable and
modular pieces of UI.
                      0:10
                    
                    
                      To kick things off, we created our
first component, the Header component.
                      0:14
                    
                    
                      We discovered that defining a component
in React is as straightforward
                      0:19
                    
                    
                      as creating a function,
with the key requirement being that
                      0:24
                    
                    
                      the component names should always
begin with a capital letter.
                      0:28
                    
                    
                      This naming convention is crucial for
                      0:33
                    
                    
                      React to differentiate between
components and regular HTML tags.
                      0:35
                    
                    
                      Once we created our Header component, we
were ready to display it in the browser.
                      0:42
                    
                    
                      Similar to HTML tags,
we use the component's name as
                      0:48
                    
                    
                      the JSX tag and
past it to the root dot render method.
                      0:53
                    
                    
                      This allowed us to effortlessly
render our component on the screen.
                      0:58
                    
                    
                      We repeated this process for the item and
                      1:04
                    
                    
                      counter components which brought us
to the concept of nesting components.
                      1:07
                    
                    
                      We needed a way to render the counter
component in the item component.
                      1:12
                    
                    
                      React allows components to be
nested inside one another.
                      1:18
                    
                    
                      This nesting capability allows
us to construct intricate
                      1:23
                    
                    
                      user interfaces by composing
smaller reusable components.
                      1:28
                    
                    
                      Finally, we assembled all our
components into an app component,
                      1:33
                    
                    
                      forming the foundational
structure of our application.
                      1:38
                    
                    
                      However, our app is static.
                      1:42
                    
                    
                      In the next stage, you'll learn how
to insert dynamic information into
                      1:45
                    
                    
                      components using properties,
also known as props.
                      1:50
                    
                    
                      See you soon.
                      1:53
                    
              
        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