Greeting component

Report a typo

Create a functional component named Greeting. This will take a prop named name and display a greeting message like "Hello, [name]!". Fill in the missing pieces to complete it.

Fill in the gaps with the relevant elements
import React from 'react';

const Greeting = () => {
  return <div>Hello, {}!</div>;
};

export default Greeting;
 

Create a free account to access the full topic