Open Discussion: Why People Prefer Axios over Fetch?

webjose

José Pablo Ramírez Vargas

Posted on October 16, 2022

Open Discussion: Why People Prefer Axios over Fetch?

Hello community! I come with what I consider an interesting question because I continue to see the Axios library referred a lot everywhere, even in simple samples, as opposed to the standardized fetch() function which is now also available in NodeJS v18.

My question for you all is: Why do you (or others, in your opinion) continue to prefer Axios over fetch()? I am no front-end developer, so pardon my ignorance if it is a big thing I am unaware of. Yes, I do my backend mostly in ASP.net.

I'll try to compile all your answers here by editing regularly as people respond.

Thank you!


Results

Ok, so let's start tabulating things:

Feature Fetch Axios
Master configuration (headers and such) ✔️
People used to Axios ✔️
No extra library (still needs wrapper) ✔️
No installation ✔️
XSRF ✔️
Download progress ✔️ ✔️
Upload progress ✔️
1-step JSON response ✔️
💖 💪 🙅 🚩
webjose
José Pablo Ramírez Vargas

Posted on October 16, 2022

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

Sweeper.js Update
javascript Sweeper.js Update

March 9, 2022