News for hackers. Stuff that matters.
Re:Web Components Eliminate JavaScript Framework Lock-In by breadwinner on Monday November 27, 2023 @05:58PM (#38439738)
You can render the view from scratch on every user interaction, even in MVC. In fact, you can use React for that purpose. "Lots of people use React as the V in MVC." See that quote on this page: https://github.com/facebook/react/tree/015833e5942ce55cf31ae...

Personally, I have not run into large amounts of bugs of this type, and I have written plenty of MVC code using VanillaJS.

Re:Web Components Eliminate JavaScript Framework Lock-In by stickfigure on Tuesday November 28, 2023 @09:59AM (#38446420)
As I said, "MVC", model, view, controller - popular names. But if you've ever done MVC GUI programming, and MVC web programming, you find that the relationship is merely analogous. And even within both camps, there is such variety that I don't think you can fairly call MVC a single technology. It's a (very) loose pattern.