July 2017
Intermediate to advanced
374 pages
8h
English
In Flux, we will be defining the responsibility of every module, and it should also be single. The React responsibility is to re-render the view when that data changes, which is good for us. All we need to do is listen to these data events using something like Flux, which will manage our data.
With Flux, you not only separate the responsibility of modules, but also get to do a unidirectional flow within your app, and that's why Flux is so popular.
In the Flux loop, for every module, there's always one direction to go through. This intentional constraint on the flow is what makes the Flux applications easy to design, easy to grow, and easy to manage and maintain.
The following diagram will give you more clarity ...
Read now
Unlock full access