logoalt Hacker News

troupotoday at 1:02 PM1 replyview on HN

> 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.


Replies

WickyNilliamstoday at 1:08 PM

They 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

show 1 reply