React Components & Props
React lets you define your UI as independent, reusable pieces called Components. You can think of components as custom HTML tags that you write using JavaScript.
Functional Components
The most common way to define a component is to write a JavaScript function. A valid functional component must follow two rules: It must start with a Capital Letter (PascalCase), and it must return JSX (or null).
Dynamic Data with Props
Props (short for properties) allow you to pass data from a parent component down to a child component. They are read-only and behave like arguments passed to a regular function. Instead of hardcoding text, you use {props.propertyName} to render values dynamically.
Composition & Fragments
You can build complex UIs by nesting components inside other components, which is called Composition. If your component needs to return multiple elements without adding an extra wrapper div to the DOM, you should use a React Fragment: <>...</>.
View Full Transcript+
This section contains the full detailed transcript covering React component architecture, the shift from class-based components to functional components, how to properly destructure props (e.g., function Avatar({ user, size })), and the strict rules of JSX, including closing all tags and returning a single parent element.
