Nov 8, 2022
You made nice points but unfortunately this just doesn’t scale well. A single ternary in a render statement is easy to read. But as they grow and become more complicated. It’s impossible to read. The same applies for any use of if + else in code. Designing the code to handle a single if statement allows code to read like English without complicated mental puzzles