3 ms·
But JSX? Once template literals showed up, I have no idea why JSX didn’t die out immediately. Generating code with template literals is how you get SQL injecti
by jfengel 3y ago
But JSX? Once template literals showed up, I have no idea why JSX didn’t die out immediately.
Generating code with template literals is how you get SQL injection attacks. You can't tell until runtime whether the code you're writing is valid or not.
When you write JSX you get support from your IDE: managing close tags, clearing up indentation, autosuggest for tag attributes, etc.
I get that it's annoyingly heavyweight to have to put a transpiler in between your code and the execution environment. But the larger your project gets, the more likely you'll want something (typescript, packaging, etc.) that shifts some of the burden onto the compiler.
Sure, you can do without, just like you can write code without an IDE. But I think I'm more productive.