Hacker News new | past | comments | ask | show | jobs | submit login

JSX is syntactic sugar for function calls, but they are still just JS functions. You don't even have to use JSX.

Templates are 5 steps backwards, Svelte overall is a leap backwards.

Familiarity != simplicity.

The only thing I'd use Svelte for is for simple websites, but oh no you can't because it requires JS...




It seems like you're splitting hairs. React had a new syntax. Svelte has a new syntax too, albeit a familiar one.

You can call Svelte's syntax 'templates' if you want, but if you do, you should call JSX a 'template' syntax too. You seem to be saying templates are bad, which is fine, but a vdom and a compiler are both sufficiently different from, say, mustache templates and you seem to be favoring React for no technical reason.

> Familiarity != simplicity.

Sure. But you literally just said:

> That's what happens when you create your own template syntax...again.

Which seems to indicate you preferred familiarity.

I'm not really sure what your argument is except pointing out that you prefer React. OK.


JSX is not a template syntax. JSX is entirely optional, it's just syntactic sugar for function calls.

JSX is simply a way to write JavaScript that looks like HTML.

I know when I develop in React there's no magic. I know JSX are just functions, everything else in the code is as is.


> I know when I develop in React there's no magic.

That's the biggest misstatement of the day. ️ We understand that you prefer React, but this is utter...


I honestly don't care what you think, I explained my position.

I'll continue to use the one framework that supports typing styles, components, and state.

I'll continue to use the one framework that can bridge to every major desktop and mobile OS's native UI.

I'll continue to use the one framework backed by both Facebook and Microsoft.

I'll continue to use simple JS functions to build every part of my app.

You can use Svelte, lol.

Oh and don't use "we", you're one person.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: