Главная
Study mode:
on
1
Intro
2
Welcome
3
Install Axios
4
useAxios hook
5
Request Config
6
useAxios continued
7
AbortController - not isMounted
8
useAxios completed
9
Create an Axios instance
10
Joke component
11
Testing useAxios
12
Add refetch to useAxios
13
Testing refetch
14
useAxios vs useAxiosFunction
15
useAxiosFunction
16
Create a 2nd Axios instance
17
Posts component
18
Quick debug
19
Testing useAxiosFunction
Description:
Learn how to create custom React hooks with Axios for handling asynchronous requests in this comprehensive tutorial. Explore the process of building two custom hooks, useAxios and useAxiosFunction, to efficiently manage CRUD operations. Discover how to implement an Axios instance, work with request configurations, and utilize the AbortController for improved performance. Follow along as the instructor demonstrates practical applications through the creation of Joke and Posts components. Gain insights into testing the custom hooks, adding refetch functionality, and debugging common issues. By the end of this tutorial, master the integration of Axios with React hooks for seamless async/await requests in your web applications.

Use Axios with React Hooks for Async-Await Requests

Dave Gray
Add to list