Jul 22, 2021
Many things are obvious (and I am actually surprised people react so strongly to "code smells" terminology).
I just wanted to point out that no. 2 is making code less readable. For example, Python 3 removed builtin `reduce` function (as well as `map` and `filter`) because of readability problems in favor of wonderful list comprehension / generator expression. And I fully agree with that. Those who want hardcore functional programming can go Ocaml / ReasonML (btw, React can be done in Reason).
As for "business logic", JSX/TSX is wrong place for it anyway - it should be deep in the backend, in the domain layer.
Thank you for the article!