"flux" 和 "redux" 与 "react native" 有什么关系,新的 "react native" 应该开始使用其中的哪一个?

How do "flux" and "redux" relate to "react native" and which of these should a new "react native" start using?

"flux" 和 "redux" 和 "relay" 与 "react native" 有何关系以及其中哪些(flux and/or redux and/or relay)大多数 "react native" 开发人员使用。

背景:对于开始使用 "react native" 的人来说,他们应该从第一天起就开始使用其中的哪些(即 flux、redux、relay)?

它们三个都处理您的应用程序的状态,它们的区别仅在于设置它们的复杂性。我认为 Relay 比 flux 和 redux 更复杂,在使用 relay 时你应该清楚 GraphQL 是如何工作的。

如果您的应用程序很小,您实际上不需要使用这些。我建议您先熟悉处理组件上的状态,然后继续使用其中一种工具。 (我个人使用 redux)设置对于新用户来说很麻烦,但它是值得的。我还建议您查看 Mobx。