Skip to content
Pebellslearn by building

The course

React

Learn how React turns data into a user interface. You will write function components in JSX, pass data with props, keep changing data in state, respond to events, and use hooks for effects, refs and shared logic — all while building one small reading-list app.

Ready to learn

Your path through the ideas

Inside the course

5 modules · 18 lessons
CLI tools & setup · Start here

Install your tools, choose your setup and verify a local run.

02Components and JSX5 lessons

Start a React project with Vite, write function components in JSX, pass data down with props, and combine components with children.

  1. 01Starting a Project with Vite12 min
  2. 02Function Components12 min
  3. 03JSX — Markup Inside JavaScript14 min
  4. 04Props — Data Flowing Down14 min
  5. 05Composition and children15 min
03Rendering4 lessons

See how React renders and why components must be pure, then show content conditionally, render lists with proper keys, and handle user events.

  1. 01How Rendering Works14 min
  2. 02Conditional Rendering13 min
  3. 03Lists and Keys15 min
  4. 04Handling Events14 min
04State4 lessons

Remember values between renders with useState, follow the rules every hook depends on, organise many updates with useReducer, and share values across the tree with useContext.

  1. 01useState — Memory for a Component16 min
  2. 02The Rules of Hooks12 min
  3. 03useReducer — State Changes by Name16 min
  4. 04useContext — Skipping the Middlemen15 min
05Effects, Refs and Reuse5 lessons

Sync with outside systems using useEffect and cleanup, hold DOM nodes and hidden values with useRef, cache slow work with useMemo and useCallback, and package logic into custom hooks.

  1. 01useEffect — Syncing with the Outside World16 min
  2. 02Mount, Update, Unmount — Effect Cleanup15 min
  3. 03useRef — Remembering Without Re-rendering14 min
  4. 04useMemo and useCallback — Caching Between Renders15 min
  5. 05Custom Hooks — Reusing Logic17 min
Hover to wake the cannons. Drag to move, or use arrow keys when focused. Press Enter to fire a shot.