Posted On: Feb 22, 2018
Difference Between FLUX AND REDUX
The library is like a market store where a cook visits in order to buy stuff necessary to make his dish which is premade. For example, if he wishes to make a Pizza at home, he can buy a Pizza base from the market store without giving much heed to the task of making it on his own. The analogies here are market stores represents which are libraries, Pizza Base is like React or AngularJS. With the clarity of libraries, we may step ahead with Flux and Redux.
Flux was introduced to the world by Facebook earlier in this decade, it is specially meant for unidirectional flow of data which is a major part of operations if we talk about React. What Flux does is that it divides the application into four major parts i.e. Stores, Dispatchers, View, Actions and these four works together to implement the final goal of unidirectional flow of data which is intended. The components mentioned above are the heart and soul of Flux architecture.
Lastly, it depends upon the requirement of the project which decides whether one needs to use Flux or Redux.
Never Miss an Articles from us.