About Flux

14
“more of a pattern than a framework.” - [email protected] Flux

Transcript of About Flux

Page 1: About Flux

“more of a pattern than a framework.”

- [email protected]

Flux

Page 2: About Flux

The MVC pattern

Controller: takes user input, manipulates the model and causes the view to update

View : represents the display of the model in the UI

Model : manages the behaviour and data of the application

Page 3: About Flux

When your application grows … ?

Page 4: About Flux

MVC Problems

Page 5: About Flux

We are all confused.

Page 6: About Flux

What about flux ?

Page 7: About Flux

Flux Architecture

Page 8: About Flux

Looks simple !

Page 9: About Flux

When your application grows … ?

Page 10: About Flux

Complex Flux Data Flow

Page 11: About Flux

…. ? confusing !!

Page 12: About Flux

The difference is that “ All actions go to the Dispatcher. ”

Flux keeps things predictable.the level of predictability in the Flux diagram is much higher.

Page 13: About Flux

cons

“ This shows what MVC is. maybe Facebook tried to

use just one controller to control several models.”

“ It’s just like that Facebook wanted to change the

name of MVC.”

Page 14: About Flux

Thank you.