Which is better? Axios or Fetch?
Javico11
Posted on April 5, 2023
Personally, I like the simplicity of both, but I use more Axios, I would like to know your opinions about it.
I attach an example of the basic use of Axios:
const fetchData = async() => {
try{
const get_data = await axios.get("URL");
}
catch(error){
console.log(error);
}
}
// call the function
fetchData();
This has really helped me a lot and I have no complaints, but when talking about performance and being an external library, this question arises.
thanks for reading :D
💖 💪 🙅 🚩
Javico11
Posted on April 5, 2023
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.