Data flows downbeginner
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.
<OrderCard> takes props: any, so nothing stops it being used wrongly — and it crashes on Tunde’s order, because he has no phone number. Give it a props type that says what is required, and render the phone only when there is one.
Required props are required, the status is the union, a card with no phone renders, and nothing is any.
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 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 discriminated union makes impossible states impossible: one status field the compiler forces you to handle, instead of three booleans that can contradict each other.
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.