Lesson 6 of 13 · Hooks and data
Loading data from an API: fetch, loading, errors and cancellation
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.