We have a react application with Flux architecture, I am searching any good library for sending http request like angular\'s $http, $resources.
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 size
request
library does not have support promises
native fetch
does not have support all browsers
Yes you can use the whatwg-fetch
you have to install it using
$ npm install whatwg-fetch --save
for more information please refer fetch
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:
All the links include installation and usage