Create a functional component named Product that accepts two properties: name and price. Show the product name and price in a sentence formatted like "Product: [name], Price: [price]". Now, it's your turn to fill in the gaps.
Properties
Component for a product
Report a typo
Fill in the gaps with the relevant elements
import React from 'react';
const Product = () => {
return (
<div>
<p>Product: {}, Price: {}</p>
</div>
);
};
export default ;
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.