反应本地双向数据流? [英] React native bidirectional data flow?

查看:78
本文介绍了反应本地双向数据流?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用ReactJS和flux.它们用于构建基于Web的应用程序.通量用于增强提供双向数据流的数据流方式.

I worked with ReactJS and flux. They are to used to build web based applications. And flux is used to enhance the way to data flow providing bidirectional data flow.

我开始学习对母语的反应,想知道

I start learning react native and wants to know

─我可以将助熔剂用于本征反应吗?

─ Can I use flux into react-native ?

OR

─是否有其他可用的库或框架可用于React Native.我遇到了Redux.这是React Native的唯一选择吗?

─ Is there any other libraries or framework available to use in react native. I came across Redux. Is that only option in react native ?

请帮助我阐明在React Native中使用什么.

Please help me to clarify what to use in react native.

推荐答案

是的,您可以在React Native应用程序中使用Flux,但是Redux仍然可以满足您99.9%的情况.Redux不是唯一的选择,但在生产中使用最多,因此您会发现很多示例,更不用说它是Flux的简化,因此,如果您使用过Flux,也许您会在Redux上早做准备.如果应用程序的持久性不是问题,则可以仅依赖于本地状态模式.

Yes, you can use Flux in your react native app, but Redux will fit anyway the 99,9% of your cases. Redux is not the only option but is the most used in production so you'll find a lot of examples, not mentioning it is a Flux semplification so if you've worked with Flux maybe you'll get ready very early with Redux. If persistency is not an issue with your app you can just rely on local state patterns.

React Native + Redux: https://blog.cloudboost.io/开始使用react-native-and-redux-6cd4addeb29

React Native + Redux: https://blog.cloudboost.io/getting-started-with-react-native-and-redux-6cd4addeb29

React Native + Flux: https://medium.com/react-native-development/writing-a-react-native-tutorial-in-an-age-of-flux-55fb62d5ff7a

React Native + Flux: https://medium.com/react-native-development/writing-a-react-native-tutorial-in-an-age-of-flux-55fb62d5ff7a

这篇关于反应本地双向数据流?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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