Consider using Facebook Sample Stream . Using this template, you will separate user interface components from state management; government is facilitated by "shops." Stores complete state coordination between components. Now your views are not communicated directly. In addition, data is transmitted in only one way.

Note that there are many Flux implementations that you can use, such as reFlux . You can find many of them by searching for available NPM packages.
... So how to check this?
Once you have installed the template, you can use Google resources, blogs and examples for testing. There are currently two main approaches for unit testing: Jest and Jasmine. Facebook recommends using Jest :
In order for the unit test to work on a truly isolated application device, we need to mock every module except the one we are testing. Jest makes mockery of other parts of the Flux app trivial.
...
Flux stores often receive a lot of formal unit test coverage, as this is the state of the application and logic. Stores are arguably the most important place in the Flux coverage application.
Jared dykstra
source share