Component for a product

Report a typo

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.

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