Completed
Displaying a loading message in JSX
Class Central Classrooms beta
YouTube videos curated by Class Central.
Classroom Contents
Fetch Data from API in React JS - Learn ReactJS
Automatically move to the next video in the Classroom when playback concludes
- 1 Intro
- 2 Tutorial Set Up
- 3 Switching from localStorage to REST API
- 4 Using Async Await with useEffect hook
- 5 Creating the fetch function
- 6 Not all fetch errors go to the catch block
- 7 Catching fetch error responses
- 8 Displaying errors in JSX
- 9 Simulating a slow REST API response
- 10 Track loading state
- 11 Displaying a loading message in JSX
- 12 The complete fetch function inside useEffect