Slots and childrenintermediate
A component that does not know what goes inside it is one you reuse; a component that hardcodes its contents is one you copy — and children is the prop that makes the difference.
<Panel> ignores what is put inside it, so the order’s items never appear, and both components take any. Give Panel real children, ItemRow a real item, and the rows a stable key.
Children typed and rendered, rows typed, keys stable, and the items show.
Published in full, before you start — every point is one of these and there is nothing else. Each one runs your code; it is not a search for keywords.
A component that does not know what goes inside it is one you reuse; a component that hardcodes its contents is one you copy — and children is the prop that makes the difference.
A component receives everything it needs as props and renders it — which is what lets the same card show a laptop on one page and a desk on another without being rewritten.
A type is a note to your future self that the compiler checks — annotating what goes in and what comes out is where most of the value is, before any advanced feature.
A list component owns the collection and a row component owns one item, and the empty case is a state to render rather than a blank space where a table should be.