Re:You may not need Moment.js
by imbnwa on Saturday September 18, 2021 @06:55PM
(#28580084)
People don't use React because the magnitude of managing the view update code is so large and/or complicated that diffing a reified DOM tree in toto is superior (I've seen it used for an app that consisted of a few screens with some text and a button each), its become standard so everyone learns one interface and development is normalized across shops. This has the benefit of a flourishing component ecosystem.
[ Parent
| on HN ]
Re:You may not need Moment.js
by throw_m239339 on Saturday September 18, 2021 @06:56PM
(#28580092)
> its become standard so everyone learns one interface and development is normalized across shops
An industry using the exact same framework (for a time, it never lasts) doesn't make that framework a "standard". jQuery was also "a standard" by the same logic.
edit: I'm talking about web standards here, which is the DOM is part of. After the inane amount of hate jQuery got with hit pieces, JS developers were quick running to an even more intrusive and bloated framework that certainly was not "vanilla JS" either, the irony is somehow lost somewhere...
A standard choice, rather than run by a standards committee
Re:You may not need Moment.js
by throw_m239339 on Saturday September 18, 2021 @07:04PM
(#28580144)
You don't need React, just like you didn't need jQuery, just like you didn't need AngularJS. None of these are standards in anyway but only jQuery was problematic? Just no...
The dominance of React or Angular is largely a function of Facebook and Google having more powerful marketing machines and resources than John Resig.
JQuery solved a problem that was very real when we adopted it. But that problem doesn’t exist anymore, since browsers extended and refined their API.
However, isomorphic HTML generation/templating and state management are still unsolved from a browser native perspective.
Yes, thank you
True but also the amount of code React requires (even putting the library itself aside) is ridiculous. I’m working on a React project (but not directly on React) and the file length for ridiculously-basic stuff is mindboggling. Vue and Svelte are much saner.