React: Building Modern User Interfaces
Exit

Lesson 6 of 13 · Hooks and data

Loading data from an API: fetch, loading, errors and cancellation

55 min Node.js 22 (Debian, git, npm, python3)

Objective

Display today's deliveries in the dashboard, served by the courier company's REST API (built in the "Node.js" course), and handle the three situations cleanly: loading, success, error — while preventing an old response from overwriting a newer one.

This lesson is part of the full course

Unlock React: Building Modern User Interfaces to read every lesson, do the exercises, access the simulations and earn your certificate.

Already enrolled? Log in.