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.
Properties
My online store
Report a typo
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;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.