In this video we learn how to take our async fetch logic and bring it over into our React quiz game so that our trivia questions can be loaded dynamically from an API. Along the way, we learn how to manage loading, error and success states in React and learn how to initiate our fetch when the page load via useEffect.
=== Relevant Links ===
Playlist: • SP21 Web Apps
Next video: • SP21 Web Apps: 22 - Refactoring with Custo...
Starter files: https://github.com/mikewesthad/SP21-A...
useEffect docs: https://reactjs.org/docs/hooks-effect...