The Good and Bad parts of JSX
Compare these two code samples
It’s possible to embed a simple condition using ternary operator.
But you can not go any further without hacks. This will not work.
This doesn’t change the fact that we are doomed to keep adding more syntax into JSX as we need it. Either we stay with incompatible DSL and keep throwing more code around to deal with it, or choose a language with no such problems.