Reactjs 和 Rxjs 有什么区别? [英] What is the difference between Reactjs and Rxjs?

查看:56
本文介绍了Reactjs 和 Rxjs 有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

基本上我开始学习 Rxjs,我在 React 和 Rxjs 之间有点困惑.我假设 Reactjs 和 Rxjs 是一样的.

Basically I am start learning Rxjs and I am a little bit confused between React and Rxjs. I was supposing that Reactjs and Rxjs is same.

问题:

  1. 如果 Reactjs 和 Rxjs 是一样的,那么为什么我们在 Rxjs 上使用 Reactjs,反之亦然?

  1. If Reactjs and Rxjs is the same then why are we using Reactjs over Rxjs or vise versa?

如果 Reactjs 和 Rxjs 不一样,那么请简要区分这两种语言.

If Reactjs and Rxjs not same, then please briefly differentiate both the languages.

推荐答案

这真的不一样,React 是视图库,而 Rxjs 是 JavaScript 的反应式编程库.您可以在 react 视图中使用 Rxjs,但在 reactjs 中,人们通常使用 Redux、flux、mobx 或 relayjs(如果他们使用 graphql)等库来处理数据流.

This is really different, React is view library and Rxjs is reactive programming library for javascript. You can use Rxjs inside react view but in reactjs, people usually use a library like Redux, flux, mobx or relayjs (if they use graphql) for data flow.

这篇关于Reactjs 和 Rxjs 有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆