by luxphl · 6y ago · 0 comments
But the reality is that React is plain HTML and Javascript, in a less error-prone and maintainable package.
Everything you can do with vanilla JS you can do in React, but with React you benefit from being forced to separate the state of the DOM from manipulating it.
I don't buy the hipster-centric logic, for me it comes down to productivity. The bugs of yesteryear, tracking down which procedural code path led to modifying a variable, are mostly gone with React. And if you don't use it (or something like it), you end up implementing a subset of it anyway because it's a foundational part of coordinating UI with business logic. /shrug
All react does is remove the need to modify the DOM directly when you want to modify things.
Which is wrong, React doesn't address that in any way, shape or form.
This is far form the reality. And the reality is, that more often than not you do not even need JavaScript, not to mention React.