2 ms·
The key values of Redux are separating state update logic from the rest of the app, emphasizing writing as much logic as possible as pure functions that are ea
by acemarke 7y ago
The key values of Redux are separating state update logic from the rest of the app, emphasizing writing as much logic as possible as pure functions that are easy to test, and enabling developers to better understand when, where, why, and how their state is changing over time.
Note that it's entirely possible to write your reducer logic as state machines, and in fact we explicitly encourage that :
https://redux.js.org/style-guide/style-guide#treat-reducers-as-state-machines https://redux.js.org/style-guide/style-guide#treat-reducers-...
- FpUser 7y agoIn my opinion State Machine is sufficient on it's own. To me reducers seem superfluous and in fact distracting from actually managing state. But as already said it is my own opinion coming from my own experience. We do not need to convince each other