Notes on Flux Architecture And Redux
Okay this will be a summary of very important concepts that I’ve learned, which is the Flux architecture. The core idea is this. There are three interconnected primitives within the flux architecture for state management. First, there is the reducer. A reducer is a function that takes in a state variable (similar to the ‘useState’ function), but in addition, also takes in an action variable. An action is simply an object that contains information regarding the user’s action, to be enacted on the state. A common definition within action object is the action.type property. ...