OK, so this is interesting and while sure it’s opinionated, I got what I needed out of it, a quick explanation as to why some would see axios as a viable or preferred alternative to native ajax (fetch) call. Personally, I don’t mind the extra method to get my json data if it means I can work with it and I don’t need to load yet another library and I don’t need to cancel the request, in which case throwing an error does the job just fine. Thanks though, for the write-up. Bookmarked it! :)

Written by

Writer of code, blogs and things that live on the web. Pragmatic doer, Lego fan, Mac user, cool nerd. JavaScript and Flutter enthusiast. HMH.engineering editor.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store