3 ms·
This is how Redux (Flux implementation) in JavaScript works. Basically the whole application state is maintained in a single, global variable. Also, every possi
by darekkay 8y ago
This is how Redux (Flux implementation) in JavaScript works. Basically the whole application state is maintained in a single, global variable. Also, every possible action has a global string ID constant.
Coming from Java and its best practices it seemed really odd at first, but it makes state management and debugging so much easier.