3 ms·
The advantage of Vue, Svelte, and React is the neat decoupling of changing state and responding to those changes. jQuery always seemed to end up in long chains
by blowski 4y ago
The advantage of Vue, Svelte, and React is the neat decoupling of changing state and responding to those changes. jQuery always seemed to end up in long chains of callback hell.
- jabart 4y agoJS in ~20020 - Use onclick handlers to respond to user interaction. JS in ~2004 - Use jQuery to decouple your JS from your HTML in separate files. JS in ~2008 - We invented our own onclick handler, embed your JS in your HTML it's fine now. EDIT Spelling
- pantulis 4y agoBecause it hails from a different and terrible era. It's easy to forget the impact that jQuery had in front-end development.
- wackget 4y ago"Decoupling" is not a phrase I'd personally use to describe a benefit of React. Every React example I've seen is a horrific-looking mixture of JavaScript, XML, and HTML all muddled together into a nasty-looking component system. When I was learning front-end development it was an absolute cardinal sin to mix markup, JavaScript, and styling together. Now that seems like the standard practice and I still can't look past it.
- agumonkey 4y agoit's an object metaphor brought to the UI layer, you used to assemble trees of java widgets updated manually, now it's a tree of dom elements with semi infered update graphs
- papertokyo 4y agoComponent-based UI libraries/frameworks and the resulting ability to compartmentalize different parts of the app make that adage irrelevant. I agree with your opinion of React/JSX, but the single file components of Vue and Svelte are an absolute joy to work with.