2 ms·
> At least if you are in a position where your component might be used in many places. I think someone once called them leaf components, and on this I agree.
by troupo 10mo ago
> At least if you are in a position where your component might be used in many places.
I think someone once called them leaf components, and on this I agree.
- WickyNilliams 10mo agoThey don't need to be leaf components to still have this strength. I've worked with design systems which have a <my-layout> component near the root which defines sidebar, header etc slots. This still works nicely with react, Vue etc But I agree they tend to be better suited as "leafier" components
- troupo 10mo ago> I've worked with design systems which have a <my-layout> component near the root which defines sidebar, header etc slots. Funnily enough this is exactly what original proposal of web components was against :)
- WickyNilliams 10mo agoHonestly I couldn't care less what the original proposal said! Things evolve. Utility is found in unforeseen places. That's the nature of ~everything. Personally I'm not a fan of that kind of component but not aligning with some original, preordained vision is a minor nit