Flux is an architectural pattern proposed by Facebook for building SPAs (Single Page Applications). Flux is not library or framework, it just a design pattern. It suggests to split the application into the following parts:
In the very simple way, you can divide flux into three situations