1 2 3 4 5 6 7
type WelcomeProps = { greeting?: string; }; export function Welcome(props: WelcomeProps) { return <div>{props.greeting}</div>; }