---
title: "Comment by Chris Williams on \"5 best libraries for making AJAX calls in React\" | Hashnode"
description: "Great article! I would put my vote in for the Fetch API. What I noticed when using Axios (and it is really easy to use and gets points for that) is that it didn"
url: "https://hashnode.com/posts/5-best-libraries-for-making-ajax-calls-in-react/57bd9cec93309a25047c5f66/comment/57c04f8593309a25047c62f6"
---

[Discussion](https://hashnode.com/posts/5-best-libraries-for-making-ajax-calls-in-react/57bd9cec93309a25047c5f66)

Comment [5 best libraries for making AJAX calls in React](https://hashnode.com/posts/5-best-libraries-for-making-ajax-calls-in-react/57bd9cec93309a25047c5f66)

[Chris Williams](https://hashnode.com/@amboy00)

[Aug 26, 2016](https://hashnode.com/posts/5-best-libraries-for-making-ajax-calls-in-react/57bd9cec93309a25047c5f66/comment/57c04f8593309a25047c62f6)

Great article!

I would put my vote in for the Fetch API. What I noticed when using Axios (and it is really easy to use and gets points for that) is that it didn't ever work well with unit testing. It may be a matter of using the right version, but mocking calls through axios never resolved. Fetch solved that issue. So if you have to ever test async functions like that, Fetch gets my vote. (\*disclaimer, this is just from my personal experience.)

[Abhishek Jain](https://hashnode.com/@jainabhishek14)

[Aug 19, 2017](https://hashnode.com/posts/5-best-libraries-for-making-ajax-calls-in-react/57bd9cec93309a25047c5f66/comment/57c04f8593309a25047c62f6#reply-5998bb7ce7816cd06a19a461)

There is also issues regarding cross domain calls with axios..
