Chapter 10. Prepare Your React Application for Painless Maintenance with Flux

The reason why we decided to implement the Flux architecture in our React application is that we wanted to have a data flow that is easier to maintain. In the previous chapter, we implemented AppDispatcher, TweetActionCreators, and TweetStore. Let's quickly re-cap what they are used for:

  • TweetActionCreators creates and dispatches the actions
  • AppDispatcher dispatches all the actions to all stores
  • TweetStore stores and manages the application data

The only missing parts in our data flow are bits of functionality that are as follows:

  • Use TweetActionCreators to create the actions and start the data flowing
  • Use TweetStore to get data

Here are some important questions to ask: Where ...

Get React: Building Modern Web Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.