How do you know about FLUX in React-Native?
When you learn about react-native maybe, you’ll hear about Flux. Or maybe in another web programming this you ever hear MVC(Model-View-Controller), or in Android Development Kotlin as MVP(Model-View-Presenter) or MVVM(Model-View-View-Model).
however, in react-native, it is called Flux.
Flux is a pattern for managing data flow in your application. The most important concept is that data flows in one direction. As we go through this guide we’ll talk about the different pieces of a Flux application and show how they form unidirectional cycles that data can flow through.
Using flux, you can manage your data so easy to understand and modify an application when it gets bigger.
Flux applications have three major parts: the dispatcher, store, and view.
- The Dispatcher: receives actions and dispatches them to stores, and it is the most important part.
- The Store: holds the data of an application, and contain the application state and logic.
- The View: Data from stores is displayed in views
For More Information: ✌✌
Thanks To:
- React Native For Mobile Development, Harness the Power of React Native to Create Stunning iOS and Android Application, Second Edition.