by thatswrong0 · 10y ago · 0 comments
> React, Bad; Web Components, Good
And that's literally all the justification the author is going to give you. "I _could_ tell you why React is designed poorly, but I won't. Instead, I'll complain about the fact that it's made by a COMPANY. A company that MAKES MONEY. And that's BAD for everyone".
Yeesh. React makes web development way more enjoyable and maintainable to me. Don't tell me THAT web components are better, tell me WHY. Tell me HOW React, which is functional in nature and makes composition and reasoning about view code incredibly easy, is making my app an "unmaintainable hair ball of unreadable code". The author conveniently leaves out actual argumentation.. for the entire article.
JSX wants you to couple your view with the model and controller
I could give you a lot of specifics—separation of concerns, coupling views with models, the focus on needless optimizations, the importance of supporting open standards—but I'm going to tell you a story, instead.
Ok, I agree, he didn't give any reason aside from separation of concerns and company bad, web components good.There is a more recent post (https://www.pandastrike.com/posts/20160331-facebook-react-pa... - thanks to @suyash for pointing that out!) that clarifies this point and even offers some counter-points to the argument. It doesn't touch on the technical merits of Web Components over React which I would like to see but I have to agree with their overall feeling on the matter.