is there any good Http library for React flux architecture

后端 未结 3 1075
小鲜肉
小鲜肉 2020-12-31 04:23

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

3条回答
  •  误落风尘
    2020-12-31 04:56

    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

提交回复
热议问题