Create a React component that renders Hello, {name}.
Ready — edit the code above and click Run.
function Greeting({ name }) {
return `Hello, ${name}`;
}
console.log(Greeting({ name: "Sandeep" }));
Try solving on your own first, then reveal the official answer.
Functional components receive props and return JSX. Interviewers expect clarity on props destructuring.