Fetch Data from API in React JS - Learn ReactJS

Fetch Data from API in React JS - Learn ReactJS

Dave Gray via YouTube Direct link

Displaying a loading message in JSX

11 of 12

11 of 12

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. 1 Intro
  2. 2 Tutorial Set Up
  3. 3 Switching from localStorage to REST API
  4. 4 Using Async Await with useEffect hook
  5. 5 Creating the fetch function
  6. 6 Not all fetch errors go to the catch block
  7. 7 Catching fetch error responses
  8. 8 Displaying errors in JSX
  9. 9 Simulating a slow REST API response
  10. 10 Track loading state
  11. 11 Displaying a loading message in JSX
  12. 12 The complete fetch function inside useEffect

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.