Hacker News new | ask | show | jobs
by beders 2532 days ago
"everything is a component"

That is a major misconception. In reality, that is simply not the case. (see all those 'container' like components trying to tame underlying components and the awful state juggling dance we are now accustomed to.)

And most JS frameworks confuse the logical structure of an app with the 'physical' structure of the DOM.

Components are in the end rendered sub-trees in the DOM. But that forces you to lay out your app logic along these lines.

It's limiting, it's wrong and there is a very good reason why there's a C in MVC. It stands to argue we dismissed the C part in the front-end world way too easily.

1 comments

> And most JS frameworks confuse the logical structure of an app with the 'physical' structure of the DOM.

Because that's what JavaScript does. How is it any different than document.getElementById or the window event handling system?

The point is if we're going to do it we might as well do it well.