3 ms·
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
by imbnwa 5y ago
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.
- throw_m239339 5y ago> 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...
- 8note 5y agoA standard choice, rather than run by a standards committee
- imbnwa 5y agoYes, thank you
- throw_m239339 5y agoYou 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...
- imbnwa 5y agoThe dominance of React or Angular is largely a function of Facebook and Google having more powerful marketing machines and resources than John Resig.
- dgb23 5y agoJQuery 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.
- q-rews 5y agoTrue 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.