Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

is there any good Http library for React flux architecture

We have a react application with Flux architecture, I am searching any good library for sending http request like angular's $http, $resources.

like image 256
Vinoth Rajendran Avatar asked Nov 20 '15 07:11

Vinoth Rajendran


1 Answers

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

like image 72
Emilio Rodriguez Avatar answered Oct 06 '22 06:10

Emilio Rodriguez