React Components & State
Build interactive UIs from React function components that take props, own state, respond to events and render lists and conditional content.
3 objectives 6 steps about 135 min
Learn it step by step
Read the lessons in order, try the practice checks, then prove the skill with the knowledge check.
This skill page is a public outline. Its lessons and knowledge check appear here as subject-matter experts approve them.
Learning objectives
- Break a UI design into a component hierarchy and implement it with JSX, typed props and composition through children.
- Handle user events and manage local state with useState, updating objects and arrays immutably and lifting shared state to the closest common parent.
- Render lists with stable keys and conditional content, and predict when a component re-renders and when its state is preserved or reset.
Lesson plan
6 steps, about 135 min · 5 of 5 lessons available so far
- From Mockup to Component Tree Concept · 20 min
- JSX, Typed Props and Composition Worked example · 25 min
- State, Events and Immutable Updates Worked example · 25 min
- Lists, Keys and When React Re-renders Concept · 20 min
- Lab: A Filterable, Sortable Product Table Lab · 30 min
- Check: Predict the Component Behavior Knowledge check · 6 questions
Practise it
Rebuild the shopping list in React and TypeScript: typed props, state owned by one parent, counts derived during render rather than stored, stable keys, and React DevTools screenshots showing which components re-render on each action.
Build it from scratch
Practice builds that exercise this skill by re-creating a real technology.
- Build your own ReactIntermediate · 6–12 h
References
Hard prerequisites
Unlocks
On these roadmaps
Progress and evidence for this skill are shared across all of them.