MVC vs Flux

  • For the most of the mvc framework, there is 2 ways data binding between model and view , also controllers can manipulate with each others to implement the logic

  • When the structure becomes more complex, it is really difficult to trace which part cause the change of model and the location of model that correspond to the view

  • Flux is a kind of one-way-data flow structure, store all of the data model into one place , and bind to corresponding view

  • So that it is easier to trace the logic and data model by making use of store and action

  • Also , it is easier to perform a unit test

Last updated

Was this helpful?