Handling API Requests in React #22 React Course

Published: 16 March 2023
on channel: Code with Sloba
1,328
55

In this video, we are gonna learn how to handle API requests in React, following the best practices. We are not only gonna learn how to make API requests, but also how to handle API errors and how to clean up your API requests. We are gonna make these requests using the Axios library.

************************************************************
Previous Video:    • Type-checking with Proptypes in React...  
Next video:    • How to test React Application #23 Rea...  
Full series    • Full React Course  

************************************************************

0:00 Intro
0:58 Creating CatFact component
2:30 Making file for handling API requests
5:17 Handling API errors
7:11 Cleaning up API requests

🧿 I discussed:

✔️ How to make API requests in React using Axios
✔️ How to handle API errors in React
✔️ How to clean up your API request in React
✔️ How to separate concerns in your React components

************************************************************

👉 Patreon:
✔️   / codewithsloba  

👉 Join and become a better developer:
✔️https://codewithsloba.com

👉 Linkedin:
✔️   / slobodan-.  .

👉 Instagram:
✔️  / codewithsloba  


Watch video Handling API Requests in React #22 React Course online without registration, duration hours minute second in high quality. This video was added by user Code with Sloba 16 March 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 1,328 once and liked it 55 people.