4 ms·
> React is obviously the "new jquery", and something else will come one day. "Something else" is already here and has been for a long time. Vue and Svelte are
by kode95 1y ago
> React is obviously the "new jquery", and something else will come one day.
"Something else" is already here and has been for a long time. Vue and Svelte are both excellent alternatives.
- monooso 1y agoI think the point is not that there aren't alternatives—there were plenty of jQuery alternatives—but that React is the dominant force, and this too shall pass.
- schwartzworld 1y agoReact won’t topple for a while, because of none of the alternatives are different enough. React solved a real problem many developers faced by giving them a state management system with a rendering engine, whereas you were likely to make surgical cuts before in response to state change, you can now just write your ui assuming the whole thing rerenders in response to changes to that state. The component system also allowed for an easy way of sharing code as dependencies. Vue, Svelte, Solid and the rest have their individual pros and cons when compared to react, but they are essentially different attempts to do the same thing. You want to topple react, you need to solve a problem that’s as big as state management used to be in a way that react can’t also just copy/absorb, and you have to do it so well that developers will push to use it at work. You need to have a ux as clean as what React offers to its devs, and you probably need to come close enough in benchmarks to not get instantly shot down.
- warmjets222 1y agoThe alternative that eventually beat out jQuery was just better native javascript, though.
- lunarboy 1y agoI come from mobile, and was surprised how nice svelte is. Felt so much more familiar patterns than react
- gloosx 1y agoThey are not. Extending JavaScript with an XML-like syntax that transpiles down to composable function calls feels far more natural. In contrast, extending HTML with a template syntax feels limiting and less intuitive in practice — thats why these frameworks are unlikely to ever reach the same level of traction as React.
- kode95 1y agoWhat feels more "natural" is likely to be influenced by what you already know. I've always felt that JSX felt unnatural and Vue's and Svelte's way of doing it feels more natural.
- gloosx 1y agofair — what feels natural usually depends on what you are used to. But even aside from preference, JSX aligns directly with how JavaScript itself works. You are not learning a new templating DSL — you just compose functions. That conceptual unity is what makes React approach click for for so many.
- jmull 1y ago> JSX aligns directly with how JavaScript itself works... Why javascript, though? That preference, again, seems based on what you’re used to. The actual goal is to manipulate the DOM based on state changes using a declarative representation. Javascript seems more like something that was available rather than a good fit. (In fact, they felt like it was a bad enough fit that JSX had to be added to the mix.) Setting aside any particular framework, HTML seems like a better fit to me… it’s inherently declarative and, of course, has a well understood, well supported relationship with the DOM. Extensions to bind state can be pretty well contained.
- Alex-C137 1y agoHard disagree. React is only popular because large companies made it so. There are few things that React is inherently better than Vue and none of them are its bundle footprint, page load speeds, nor the average time to learn one or the other. Subjectively I am extremely in opposition to the fact that XML anything with composable functions is more intuitive than HTML templates by any stretch of the imagination.