From the course: Build Modern Web Apps with React, Hooks, State Management, and APIs Using Vite or Next.js

Unlock this course with a free trial

Join today to access over 25,200 courses taught by industry experts.

Overview and fetch API example

Overview and fetch API example

Hello, and welcome to module number eight. In this module, we are going to learn about the API integration and how we can do the server communications. Let's start off with the lesson number one. In this lesson, we are going to have a deep understanding of Fetch API versus Axios. Let's have an overview. We are going to discuss what the Fetch API is and Exeos. We are going to discuss what Fetch API and Exeos are. We'll have the differentiation between the pros and cons of each of them. Then we'll understand how we can set up XEOs, base URL interceptors, and how we can make it production ready. We'll have examples, which will be practical examples using React, Vite, and Tailwind CSS, which has been our tech stack. Let's start off with Fetch API. We have discussed Fetch API and XEOs before in the previous modules and lessons as well. But in this lesson specifically, we are going to focus on how we can make API calls and what are the best practices to perform this. As we know that Fetch…

Contents