News for hackers. Stuff that matters.
Re:Making Web Components Work by ry_ry on Tuesday June 12, 2018 @05:58PM (#17298452)
Some unnecessary downvoting occuring, go easy.

In a discreet component architecture there is basically no reason for arbitrary siblings to know anything about each other - if there is common state to be shared it should be inhereted.

Granted, in JS land that sometimes involves jumping through weird IoC hoops or cached callbacks, which are akward to say the least, but in the abstract an instance of a component should be concerned with its own behaviour, and possibly that of it's descendents by way of that behavior.

There are no comments on this comment yet.