DEV Community

loading...

Discussion on: Fetch vs. Axios HTTP Requests In JavaScript

Collapse
rionalab profile image
rionalab

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

Collapse
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

Collapse
rinatvaliullov profile image
4rontender

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