Web · Advanced

React

Build the screens of a real shop with React: components and props, state and events, then a full app with a cart.

  • 3 levels
  • 41 hands-on classes
  • 3 level exams
  • about 7 h

What you'll be able to doBuild the screens of a real shop in React: components and props, state and events, shared state, pages, forms, speed and tests.

0%Not started
Level 1 · 12 classes and an exam

Components and props

Build pages from small parts that take data.

0/13

Recap of this level

  1. Class 1Your first componentYou are here
  2. Class 2Values in curly braces
  3. Class 3A component of your own
  4. Class 4Props: data for a component
  5. Class 5Several props and a default
  6. Class 6A list from an array
  7. Class 7Keys that follow the item
  8. Class 8Show it only when it applies
  9. Class 9&& and ? : inside JSX
  10. Class 10children: a box for any content
  11. Class 11A page from parts
  12. Class 12className and style
  13. Level exam · 3 questionsLevel 1 project: the product grid
Level 2 · 14 classes and an exam

State and events

Make pages that answer clicks and typing, and load data.

0/15

Recap of this level

Pass the level 1 exam to open this level.

  1. Class 13State: a value that changes
  2. Class 14Plus and minus, with a floor
  3. Class 15Typing into a box
  4. Class 16Show and hide
  5. Class 17Send a form
  6. Class 18Add to a list in state
  7. Class 19Remove and tick items
  8. Class 20An object in state
  9. Class 21Lifting state up
  10. Class 22Work it out, don't store it
  11. Class 23useEffect: change the page outside React
  12. Class 24Clean up after an effect
  13. Class 25Load data: loading, error and empty
  14. Class 26Your own hook
  15. Level exam · 3 questionsLevel 2 project: the team's task list
Level 3 · 15 classes and an exam

A real app

Share state across a page, move between pages, check forms, keep it fast, accessible and tested.

0/16

Recap of this level

Pass the level 2 exam to open this level.

  1. Class 27Context: a value for the whole pagePlus · Ultra
  2. Class 28A cart the whole page can usePlus · Ultra
  3. Class 29Start fresh with a keyPlus · Ultra
  4. Class 30All the cart rules in one placePlus · Ultra
  5. Class 31Connect the reducer to the pagePlus · Ultra
  6. Class 32Pages without a reloadPlus · Ultra
  7. Class 33A page for each productPlus · Ultra
  8. Class 34Check the form before it is sentPlus · Ultra
  9. Class 35Take the customer to the first mistakePlus · Ultra
  10. Class 36One broken part, not a blank pagePlus · Ultra
  11. Class 37Buttons a screen reader can namePlus · Ultra
  12. Class 38Say it out loud: status messagesPlus · Ultra
  13. Class 39Skip drawing what did not changePlus · Ultra
  14. Class 40Keep slow work and handlers between drawsPlus · Ultra
  15. Class 41Test a componentPlus · Ultra
  16. Level exam · 3 questionsLevel 3 project: the shop with a cartPlus · Ultra
Finish line: ReactEach level exam you pass gives you that level's trophy. Pass every level exam to finish the course and graduate.