Components and Props
Build your own tags: write components, split them into files, pass data with props, compose with children, keep renders pure and think in React.
A React app is made of components: functions with capital-letter names that return JSX. In this phase you write your own, use them many times, and move them into separate files with import and export, the way real projects are organised.
Then you'll give components inputs. Props carry data from a parent to a child: strings, numbers, booleans, objects, arrays, functions and even other JSX. You'll learn default values, rest and spread props, and the children prop that lets one component wrap another. You'll also learn the rule that keeps all of this predictable: a component must be pure. Same props in, same JSX out, nothing changed along the way.
The phase ends with Thinking in React, the five-step method the React team recommends for turning a design into a working app. You'll use it to build a small searchable product table from scratch.
Practise this phase
Hands-on exercises: write the code, see your page live, and press Check to have it tested automatically.