top | item 45526400

(no title)

kode95 | 4 months 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.

discuss

order

gloosx|4 months ago

They 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.

Alex-C137|4 months ago

Hard 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.

kode95|4 months ago

What 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.

paulhebert|4 months ago

It feels much more natural to me to extend HTML for rendering HTML than to add an xml like syntax in my JavaScript.

Why would I choose to write html in js over writing it in html?

lunarboy|4 months ago

I come from mobile, and was surprised how nice svelte is. Felt so much more familiar patterns than react

monooso|4 months ago

I 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|4 months ago

React 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|4 months ago

The alternative that eventually beat out jQuery was just better native javascript, though.