News for hackers. Stuff that matters.
Re:Thoughts on Svelte by ttfkam on Monday March 27, 2023 @12:42PM (#35328890)
It's what you consider central in a framework. For React, JS/TS is king. All markup and all CSS is subsumed in JS/TS.

In Svelte, HTML/CSS is king, with the bare minimum of JS/TS necessary for any given task.

With that in mind, of course React tends toward type definitions. Also explains why Svelte tends toward markup-oriented definitions.

Re:Thoughts on Svelte by robertoandred on Monday March 27, 2023 @02:13PM (#35330169)
React doesn’t care where or how you have your CSS.
Re:Thoughts on Svelte by ttfkam on Monday March 27, 2023 @05:07PM (#35332638)
Right, because it has very poor component-level isolation for styling. React basically punted on CSS, and that's truly not a blessing in its favor.
Re:Thoughts on Svelte by can_center_divs on Wednesday March 29, 2023 @02:23AM (#35353347)
Doesn't it? I can't put a class name on a HTML Element and then style the said class inside the same file. It seems to me that it cares more about where you have it, than Svelte