Exercises: Data Fetching - React In Depth

Опубликовано: 02 Сентябрь 2023
на канале: Tech with Nader
1,206
73

Let's go through some exercises to practice Data Fetching in React together.

We start with a warmup to get practice fetching JSON data for a Pokemon using the Pokemon API and displaying it in a Component.

In the first main exercise we look at how we might handle errors coming back from APIs and some of the different ways an API might send them back to us.

For the second exercise, we implement data caching for our responses that come back to avoid duplicate requests to a REST API.

To wrap up the video, we look at how we might use pagination to return pages of data from an API and go back and forth through them.

Chapters:
00:00 Introduction
00:50 Warmup Exercise - Fetching Pokemon
17:51 Exercise 1 - Handling Errors
38:45 Exercise 2 - Caching Responses
1:04:55 Exercise 3 - Pagination
1:28:56 Next Steps

📦 Github Repository with the notes and exercise code+solutions: https://github.com/Nooder/react-in-depth

💬 Come join us on Discord to chat with a like-minded community about tech and learning:   / discord  

🏅Support the channel and content through Super Thanks, Channel Memberships, or on Patreon:   / techwithnader  


Смотрите видео Exercises: Data Fetching - React In Depth онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Tech with Nader 02 Сентябрь 2023, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 1,20 раз и оно понравилось 7 людям.