N.B. Several months after initially asking this question (and not coming up with any satisfactory answers) I am now learning to use HTML Custom Elements / WebComponents. It seems the same question comes up again:
Please Note: I asked this question on Stack Overflow five days ago (see: Component based architectures in JS / PHP: what indicators suggest that a UI element ought to be written as an importable component?), but it may be a bad fit for that particular site.
Consequently, after reading this onI know I can turn everything in my HTML into a
Custom Element... so what do Stack Exchange Meta:/ what don't Where should I ask software architecture / design questions?, I am re-asking this question here, on SE Software Engineering. Thanks.I turn into aCustom Element?