As I will almost always wrap in new Promise anyway, I would suggest axios, which is XMLHttpRequest based and Promise based.
new Promise
axios
XMLHttpRequest
Of course, fetch is already a Promise.
fetch
Yes I agree, axios is a brilliant little library to handlr async requests
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
As I will almost always wrap in
new Promise
anyway, I would suggestaxios
, which isXMLHttpRequest
based and Promise based.Of course,
fetch
is already a Promise.Yes I agree, axios is a brilliant little library to handlr async requests