News for hackers. Stuff that matters.
Re:Rich Harris joins Vercel to work on Svelte full time by nicoburns on Thursday November 11, 2021 @01:25PM (#29191206)
Nobody truly separates JS from HTML. You either have to put something HTMLish in the JS, or something JSish in the HTML (HTML itself supports this of course).

IMO the HTML-in-JS solutions (i.e. JSX) are superior to the JS-in-HTML solutions (e.g. Angular/Vue Templates) because they put the standardised turing-complete language in the driving seat rather than the propriety, hard to extend template language.

Re:Rich Harris joins Vercel to work on Svelte full time by alserio on Thursday November 11, 2021 @07:26PM (#29194983)
Still, it's way easier to integrate a js library in a svelte component than in a react component. So maybe the two approaches have different tradeoffs and respective advantages