We have a react application with Flux architecture, I am searching any good library for sending http request like angular's $http, $resources.
Asked
Active
Viewed 1.1k times
3 Answers
20
You don't need something specific for React or Flux, you can use a regular CommonJS module. There are several you can use, my favourites are:
- Superagent: small, easy to use and easily extensible via plugins
- Axios: really nice implementation of the Promise API and Client side support for protecting against XSRF (plus supports IE8)
- Fetch: built by Github so support is pretty good
All the links include installation and usage

Emilio Rodriguez
- 5,709
- 4
- 27
- 32
-
Thanks **emilioicai** I like Axios. Is it supports all browsers. – Vinoth Rajendran Nov 21 '15 at 05:57
2
Yes you can use the whatwg-fetch
you have to install it using
$ npm install whatwg-fetch --save
for more information please refer fetch

Dhaval Patel
- 7,471
- 6
- 37
- 70
-
1I think fetch is a good choice, because it's the future and a polyfill should work just fine for the meantime. – Michael Giovanni Pumo Oct 11 '16 at 13:14
0
the best http library for react and for js - isomorphic-fetch
, it works in all browsers, have small size and have promises support
https://github.com/matthew-andrews/isomorphic-fetch
not use:
axios
library have big sizerequest
library does not have support promisesnative fetch
does not have support all browsers

аlex
- 5,426
- 1
- 29
- 38