Before we dive in-depth into Flux, let's create a simple application using the Flux architecture. For this, we will use the Flux library provided by Facebook. The library includes all of the pieces we will need to make the application tick according to the new Flux flow. Install Flux and the immutable libraries. immutable is also crucial for further advantages as we become more familiar with Flux:
yarn add flux immutable
The application we will build in Flux is a Tasks application. The one we have already created will need some tweaking. The first thing to do is create the Dispatcher, Tasks Store, and Task Actions.
The Flux package provides the base for our architecture. For instance, let's instantiate Dispatcher for our Tasks ...