News for hackers. Stuff that matters.
Re:Solid.js feels like what I always wanted React to be by leonardopainter on Tuesday March 01, 2022 @05:44AM (#30512442)
>The reason _why_ React has a virtual DOM is to enable more interesting relationships between your data and your presentation. Anyone can make a framework that makes the source code for an incrementing number look pretty!

Actually, that is only half the reason. You can do whatever you want in my library (github.com/thebinarysearchtree/artwork) and it doesn't have any kind of virtual DOM or whatever Lit does, because you just create elements with JavaScript. The second reason, that everyone just assumes is the default, is that React has to use HTML-like templates and not just JavaScript.

Re:Solid.js feels like what I always wanted React to be by Kaze404 on Tuesday March 01, 2022 @07:55AM (#30513505)
JSX is a purely optional part of React. You can use it with just Javascript and no bundlers just fine.