News for hackers. Stuff that matters.
Re:Solid.js feels like what I always wanted React to be by tobyhinloopen on Tuesday March 01, 2022 @01:14AM (#30510299)
I always wonder why all JavaScript client-side frameworks have such distinct design.

No other dev environment for building GUIs has react-like components.

What’s so special about the web that we keep creating frustrating frontend frameworks for?

Re:Solid.js feels like what I always wanted React to be by pevey on Tuesday March 01, 2022 @01:22AM (#30510368)
I personally love the front end frameworks, and I don’t find them frustrating at all. Knockout was a workhorse until angular came along. And then vuejs. And now I use sveltekit for pretty much any web app.

The frameworks are popular because you can build things incredibly quickly once you know the ins and outs of your framework of choice. The component-style design, the endpoint design, so much is just driven by the needs of web-based development and the framework creator’s preferred way of abstracting away some of the challenges.

Re:Solid.js feels like what I always wanted React to be by gman83 on Tuesday March 01, 2022 @01:21AM (#30510362)
Flutter, Jetpack Compose, and SwiftUI all have React-like components.
Re:Solid.js feels like what I always wanted React to be by Scarblac on Tuesday March 01, 2022 @02:42AM (#30510887)
The browser was intended to render documents, not applications.

In particular, HTML has a tree structure, which means that things that are semantically related on the page and update together are often miles away from each other in the tree.

And the page in the browser is part HTML, part CSS, part Javascript. Frameworks try to let the developer work in JS only and generate the rest.

And finally, much of the application's state is often kept in a backend, and access to it a asynchronous.

I think that's why Web development is so distinct from other UIs.

Re:Solid.js feels like what I always wanted React to be by leonardopainter on Tuesday March 01, 2022 @06:28AM (#30512813)
One reason is probably that creating UIs programmatically was historically very cumbersome in JavaScript due to various issues that are no longer relevant. That means everything had to be HTML-based hybrids of some sort.
Re:Solid.js feels like what I always wanted React to be by rk06 on Tuesday March 01, 2022 @02:29AM (#30510808)
Because there are a lot many js devs than others. Hence js ecosystem is significantly larger.