The reason why we decided to implement the Flux architecture in our React application is that we want to have a data flow that is easier to maintain. In the previous chapter, we implemented AppDispatcher
, TweetActionCreators
, and TweetStore
. Let’s quickly remember what they are used for:
TweetActionCreators
: This creates and dispatches the actionsAppDispatcher
: This dispatches all the actions to all storesTweetStore
: This stores and manages the application data
The only missing parts in our data flow are as follows:
Using
TweetActionCreators
to create the actions and start the data flowingUsing
TweetStore
to get data
Here are a couple of important questions to ask: where in our application does the data flow start? What is our data? If we answer these questions, we will understand where to start refactoring our application to adapt the Flux architecture.
Snapterest allows users to receive and collect the latest...