3 ms·
What makes the svelte template language less expressive than JSX in your view? Props and expressions will look similar in both (minus the useXX ceremonies), an
by ricardobeat 4y ago
What makes the svelte template language less expressive than JSX in your view?
Props and expressions will look similar in both (minus the useXX ceremonies), and the rest is all loops and if conditions. Writing simple inline conditions in JSX is painful, so it already starts with a negative score.
- peterhunt 4y agoThe template language doesn't compete with JSX. It competes with JSX + JavaScript, which is far more expressive.
- yencabulator 4y agoSvelte'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.
- The5thElephant 4y agoCan 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?
- deleted 4y ago[deleted]