4 ms·
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 - i
by namelosw 7y ago
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.
- bryanrasmussen 7y agoI 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.
- preommr 7y ago> 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.