diff --git a/src/Greeting.tsx b/src/Greeting.tsx index 3ce2594..0216672 100644 --- a/src/Greeting.tsx +++ b/src/Greeting.tsx @@ -1,11 +1,27 @@ import React from 'react'; +/** + * Displays a greeting message with the provided name in uppercase. + * + * @param name - The name to display in the greeting. + * + * @returns A React element containing the personalized greeting. + * + * @remark If {@link name} is an empty string, the greeting will display an empty space instead of defaulting to 'Guest'. + */ export function Greeting({ name }: { name: string }) { // Introduce a bug: if name is empty, it should say 'Guest', but this is not handled return