React foundations: components, state and hooks
8 steps · about 3 h 10 min · Beginner
- Think in components (tutorial, React, 20 min)
Learn the basic unit of a React interface and how components compose.
- Write markup with JSX (tutorial, React, 25 min)
Translate familiar HTML ideas into React's JavaScript syntax.
- Pass data with props (tutorial, React, 20 min)
Send values from parent components into reusable child components.
- Render conditionally (tutorial, React, 20 min)
Choose interface branches from application state.
- Render collections (tutorial, React, 25 min)
Turn arrays into stable keyed interface elements.
- Respond to user events (tutorial, React, 20 min)
Connect buttons and inputs to event handlers.
- Add component state (tutorial, React, 30 min)
Store changing interface data with state hooks.
- Share state (tutorial, React, 30 min)
Choose one owner for state that multiple components coordinate.