News for hackers. Stuff that matters.
Re:Svelte Is Unappealing by namelosw on Tuesday March 24, 2020 @04:19AM (#22673016)
In React, they're basically all JavaScript. Even for JSX people can imagine themselves as compilers, and can easily write down the JavaScript output by hand - it's totally predictable. It's really a super thin layer of DSL with nothing interesting at all.

In Svelte, people cannot do that for a fairly small application with only hundreds lines of code.

Re:Svelte Is Unappealing by bryanrasmussen on Tuesday March 24, 2020 @05:13AM (#22673217)
I would say I could theoretically write down the JS output by hand, but not easily - for any application likely to need debugging. Also in most cases you've got WebPack there, and I'm not sure if I can really write down that output by hand.
Re:Svelte Is Unappealing by preommr on Tuesday March 24, 2020 @06:45AM (#22673655)
> In React, they're basically all JavaScript. Even for JSX people can imagine themselves as compilers, and can easily write down the JavaScript output by hand - it's totally predictable. It's really a super thin layer of DSL with nothing interesting at all.

No it isn't.

Jsx gets transformed into js that calls react code. No one is writing out that react code, which is pretty much what svelte does.