Passionate Software engineer, former math teacher, and graphic designer. Enthusiastic, self-driven individual seeking new opportunities to grow as a Web Developer.
Hi rionalab,
It's definitely not worth it if it's just a few lines of code but this article just shows the basic difference between Fetch and Axios. In a bigger application, it won't be just a few lines of code. It makes a lot of difference. Also, it not only saving lines of codes but Axios has features that we have to do manually in Fetch. I would recommend going through the official documentation to see the benefit of using Axios rather than relying on this article solely. Thank you
im new at js my question is, is it worth to install a package just to remove a few lines on fetch
Hi rionalab,
It's definitely not worth it if it's just a few lines of code but this article just shows the basic difference between Fetch and Axios. In a bigger application, it won't be just a few lines of code. It makes a lot of difference. Also, it not only saving lines of codes but Axios has features that we have to do manually in Fetch. I would recommend going through the official documentation to see the benefit of using Axios rather than relying on this article solely. Thank you
I don't think it's worth it. But to get acquainted with the library, you can put and study it.