3 ms·
Being able to unit test every single part of our stack through composition of pure functions makes for a nicely decoupled architecture. We have a strictly defi
by qudat 9y ago
Being able to unit test every single part of our stack through composition of pure functions makes for a nicely decoupled architecture.
We have a strictly defined state object that is used throughout our entire application. Because we made a contract with redux, every transaction is readable and transparent.
Writing tests for our UI layer has never been easier with React. While we do have local state inside some react components, when we use redux to pass state to our react components, they become extremely easy to test, because they turn into pure functions.
When using something like jQuery, you wouldn't just look at each frame of your state to determine how the UI would look, you would also have to look at the transitional states between A and B. Transitional states are much more difficult to understand because of the contextual implications.
Our UI layer is completely separate from our business logic and we get it automatically. Without any code modification we were able to target our large application into a CLI app just by adding a new UI layer.