It's just that the most obvious conditional construct for "checking multiple possible values of a single field" is a `switch` statement [0].
Having said that, we now officially teach our new Redux Toolkit package as the default way to write Redux code [1], and its `createSlice` API [2] does actually use a lookup table approach instead.
On a related note: my next task is rewriting that existing Redux "Basics/Advanced" tutorial to modernize it, and I'm currently taking notes on what I do and don't like about it [3]. If you've got any relevant feedback on things you don't like or ways to improve that tutorial sequence, please feel free to comment and let me know!
[0] https://blog.isquaredsoftware.com/2017/05/idiomatic-redux-ta...
[1] https://redux.js.org/tutorials/essentials/part-1-overview-co...