Chapter    4

Flux: Solving Problems Differently

“Simplicity is prerequisite for reliability.”

—Djikstra

Flux is an application architecture that Facebook introduced to the world and uses for building client-side applications. It complements React Native composable view components by utilizing a unidirectional data flow. It’s more of a pattern than a proper framework, and one can start using Flux immediately without an excess load of code. Before we delve into the details, it is important to know of the popular pattern MVC, which is commonly used, and how it differs from Flux. In this chapter we will learn about the following topics:

  • MVC pattern
  • MVC problem
  • Flux
  • Flux deep dive
  • Flux example with ReactJS
  • Flux example with React Native

MVC Pattern ...

Get React Native for iOS Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.