re: A New Coding Style for Switch Statements in JavaScript/TypeScript VIEW POST

re: I prefer a variation of what you have. This is what I do in my reducers and I think it translates well in components. I feel that this has 3 advan...

This is definitely my second top choice, but I prefer my other approach honestly. I really don't like functions that are 2-3 lines long, unless they're dense and hard to read. IME, having a lot of small functions strung together can get hard to follow, since you're having to jump all over the file to trace the path of execution.

To be clear though, this is not a strong preference at all, it's pretty mild, and your method is definitely my second pick :)

code of conduct - report abuse