DEV Community


Discussion on: Fetch vs. Axios HTTP Requests In JavaScript

rionalab profile image

im new at js my question is, is it worth to install a package just to remove a few lines on fetch

uma profile image
Uma Author

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

rinatvaliullov profile image

I don't think it's worth it. But to get acquainted with the library, you can put and study it.