在ReactJS和磁通$资源对应资源、ReactJS

2023-09-11 01:23:20 作者:上帝的私生子

我一直与AngularJS相当长的一段时间,这是非常容易设置了一些资源, $资源然后再跟一个API。但我无法找到ReactJS /光通量这样的事情。难道是留给开发人员选择一个第三方库?如果是的话有什么推荐的AJAX库,与ReactJS工作的漂亮/流量?

I've been working with AngularJS for quite some time and it's really easy to set up a few resources with $resource and then talk to an API. But I'm unable to find such a thing in ReactJS/Flux. Is it left for the developer to choose a 3rd party library? If so what is the recommended AJAX library that works nice with ReactJS/Flux?

推荐答案

阵营不包括任何支持的资源,如在角甚至是基本的Ajax的工作提供。你需要找到适合您需求的Jav​​aScript库。 GraphQL 从Facebook可能最终成为一个有趣的选项对于某些情况下,当他们选择提供了它的源代码。

React does not include any support for resources like is available in Angular or even basic Ajax work. You'll need to find a JavaScript library that suits your requirements. GraphQL from Facebook may eventually become an interesting option for some scenarios, when they choose to provide the source for it.

 
精彩推荐
图片推荐