Skip to content

React.js / Beginner · No sign-in needed · Pilot

Learn React in 7 Days

Build a page from components, make it respond to clicks and typing, then put it all together in a Study Tasks app you can run on your own computer.

Start your first lesson →

Before you start

This course assumes JavaScript basics: variables, functions, arrays, objects and arrow functions. You don't need to know HTML well; each lesson explains the HTML it uses. Promises and await, which loading data needs, are introduced on Day 6.

Plan around 90–120 minutes a day. Days 1–6 each have four lessons and an independent checkpoint; Day 7 runs, tests and extends one app and takes about two and a half hours, so split it over two sittings if you like. Predict what a lab will show before you press Run, use hints when stuck, and change the code until you can explain why it works. Completion is saved in this browser only.

Pilot: all seven days are written, and the pacing is still being tested with learners. If something is unclear, please report it.

Day 1 · About 95 minutes

Your First Components

Build a page from components that live in separate files.

  1. Hello, React15 min · Read, predict and practice
  2. JSX20 min · Read, predict and practice
  3. Components20 min · Read, predict and practice
  4. Components in Files20 min · Read, predict and practice
  5. Checkpoint: A Course Page20 min · Independent checkpoint

Day 2 · About 90 minutes

Props & Composition

Pass data into components and reuse one component with different inputs.

  1. Props20 min · Read, predict and practice
  2. Children15 min · Read, predict and practice
  3. Showing Things Conditionally20 min · Read, predict and practice
  4. Styling Components15 min · Read, predict and practice
  5. Checkpoint: Study Group Cards20 min · Independent checkpoint

Day 3 · About 95 minutes

State & Events

Make a component respond to clicks and remember what happened.

  1. Responding to Events20 min · Read, predict and practice
  2. State: A Component's Memory20 min · Read, predict and practice
  3. State as a Snapshot20 min · Read, predict and practice
  4. Several Pieces of State15 min · Read, predict and practice
  5. Checkpoint: A Study Timer20 min · Independent checkpoint

Day 4 · About 90 minutes

Lists & Keys

Show, add and remove items without changing data in place.

  1. Rendering Lists20 min · Read, predict and practice
  2. Keys15 min · Read, predict and practice
  3. Updating Arrays in State20 min · Read, predict and practice
  4. Updating Objects in State15 min · Read, predict and practice
  5. Checkpoint: A Reading List20 min · Independent checkpoint

Day 5 · About 110 minutes

Forms & Shared State

Validate input and share state between components.

  1. Controlled Inputs20 min · Read, predict and practice
  2. Forms and Validation20 min · Read, predict and practice
  3. Sharing State Between Components20 min · Read, predict and practice
  4. Finding Bugs15 min · Read, predict and practice
  5. Checkpoint: Join the Study Group35 min · Independent checkpoint

Day 6 · About 115 minutes

Effects & Data

Load data with loading and error states, clean up timers, and ignore answers that arrive too late.

  1. Effects20 min · Read, predict and practice
  2. Cleaning Up20 min · Read, predict and practice
  3. Loading Data30 min · Read, predict and practice
  4. Loading Again When Props Change15 min · Read, predict and practice
  5. Checkpoint: Topic of the Moment30 min · Independent checkpoint

Day 7 · About 145 minutes

Build Study Tasks

Run, test and extend a complete multi-file React app.

  1. The Study Tasks App20 min · Read, predict and practice
  2. Run It on Your Computer30 min · Read, predict and practice
  3. Project Tests30 min · Read, predict and practice
  4. Extend It40 min · Read, predict and practice
  5. On Your Own: Flashcards25 min · Independent checkpoint
  6. Come Back Later20 min · Return in a few days · extra practice

Continue with React Intermediate →