The Flux architecture
The Flux application architecture is the new paradigm for handling data within applications, developed as an alternative to traditional Model-View-Controller (MVC) architectures or derivatives thereof. Before we delve into learning the architecture and using it to build an application, let's discuss the motivations for creating Flux and why we are using it in our React Native applications.
Motivation
When Facebook introduced Flux, they contended that MVC architectures do not scale. The reason for this, their argument goes, is that large applications become less and less predictable as they scale under these architectures. This lack of predictability stems from opaque lines of communication between the various architecture components that often lead to unintended consequences when they are not fully understood.
The motivation of Flux, therefore, is to increase predictability in large applications, enabling developers to feel confident in making changes and to...