My online store

Report a typo

Create a parent component named App. This should render two instances of a Product component, each with an object property named info. Fill in the missing parts.

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

const App = () => {
  const product1 = { name="iPhone", price="$999" };
  const product2 = ;
  return (
    <div>
      <h1>My Online Store</h1>
      <Product info = {  } />
      <Product  = { product2 } />
    </div>
  );
};

export default App;
name="Laptop"propsproduct{ name="Laptop", price="$1499" }product1Productinfo

Create a free account to access the full topic