Hacker News new | ask | show | jobs
by peterhunt 1233 days ago
The template language doesn't compete with JSX. It competes with JSX + JavaScript, which is far more expressive.
2 comments

Can you be more specific? What is easier to do with JSX+JS that is harder to do in Vue/Svelte context? Or another take on the question, will it be easier to read and understand for someone new to the codebase or JS development?
Svelte's template language can evaluate JavaScript just fine. Svelte's template language doesn't need to compete with JSX + JavaScript, Svelte + JavaScript is what competes with JSX + JavaScript.