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.
Properties
Greeting component
Report a typo
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
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.