Title: How Flux Worksparticipant userparticipant actionCreatorparticipant dispatcherparticipant storeparticipant viewControllerparticipant viewNote over viewController, view: these two things are one unit called viewNote left of actionCreator: SETUP (happens only once):actionCreator --> view: <separation line>store -> dispatcher: 'I want to be notified whenever an action comes in'viewController -> store: ask for latest statestore -> viewController: give latest state (initial state)viewController -> view: pass state for renderingNote over view: render stateviewController -> store: 'I want to be notified when state changes'view --> actionCreator: <separation line>Note left of actionCreator: DATA FLOW (ready to accept user input):actionCreator --> view: <separation line>user --> view: trigger an action (user makes a change/request)view -> actionCreator: "please prepare an action"Note over actionCreator: format request\ninto actionactionCreator -> dispatcher: send formatted actiondispatcher -> store: send action to list of stores in sequenceNote over store: each store gets notified of all actionsNote over store: decide whether or not to change state based on\nwhat it cares about (with switch statements)Note over store: change state accordinglystore -> viewController: to subscribed viewControllers: 'I have changed the state!'viewController -> store: 'Give me the updated state'store -> viewController: send updated stateNote over viewController: turn updated state into htmlviewController -> view: send updated htmlNote over view: show updated htmlNote left of actionCreator: (ready to accept user input again)view --> actionCreator: <separation line>