Understanding Flux
Flux is a pattern that Facebook created to build consistent and stable webapps with React. React doesn't give you the ability to manage data; rather, it simply accepts data through props and components, and further, the components process the data.
The React library doesn't really tell you how to get the components, or where to store the data, that's why it's called the view layer. In React, we don't have a framework as we have in the case of Angular or Backbone. That's where Flux comes in. Flux is not really a framework, but it's a pattern that will have you building your own views.
What is a Flux pattern? We have your React components, such as a Tweet component and so on, and these components do two things in the Flux ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access