4 ms·
I love JSX because all it is one big javascript expression. I disagree with the statement For some reason, React’s JSX make this unnecessarily complicated b
by kentor 11y ago
I love JSX because all it is one big javascript expression. I disagree with the statement
For some reason, React’s JSX make this unnecessarily complicated by not being able to use if statements inside code blocks.
Using if inside an expression isn't javascript! It would be some shitty templating language, and I'm grateful it didn't turn out that way.