---
title: "Comment by Denny Trebbin on \"5 best libraries for making AJAX calls in React\" | Hashnode"
description: "I&#39;ll add an alternative library qwest Qwest is a simple ajax library based on promises, and that supports XmlHttpRequest2 special data like ArrayBuffer, Blo"
url: "https://hashnode.com/posts/5-best-libraries-for-making-ajax-calls-in-react/57bd9cec93309a25047c5f66/comment/57bdaa641351c2290bba1f35"
---

[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)

[Denny Trebbin](https://hashnode.com/@nerdalytics)

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

I'll add an alternative library [qwest](http://dreamysource.io/project/qwest)

> Qwest is a simple ajax library based on promises, and that supports XmlHttpRequest2 special data like ArrayBuffer, Blob, and FormData.

```
qwest.get(this.props.url)
     .then(function(xhr, response) {
        // perform setState here
     });
```

The reason why I'm listing it here is that it supports cancellation via

```
const request = qwest.get( /*... */ ).then( /* won't execute */ )
request.abort();
```

When components unmount/unload, call `abort()` to avoid React spamming the console when Ajax ​Promises resolve after the component has unmounted/unloaded from the DOM.

[Sai Kishore Komanduri](https://hashnode.com/@saiki)

[Aug 24, 2016](https://hashnode.com/posts/5-best-libraries-for-making-ajax-calls-in-react/57bd9cec93309a25047c5f66/comment/57bdaa641351c2290bba1f35#reply-57bddcf0387df20e0b9f9170)

I believe even `superagent` has support for aborting requests.

[Denny Trebbin](https://hashnode.com/@nerdalytics)

[Aug 24, 2016](https://hashnode.com/posts/5-best-libraries-for-making-ajax-calls-in-react/57bd9cec93309a25047c5f66/comment/57bdaa641351c2290bba1f35#reply-57bde238387df20e0b9f917e)

Yeah, that's right. I favor real promises over fluid apis :-)
