The Home component will contain the logic to display the first page that users see when opening the dApp for the first time so that they can begin buying products. This component will be the core component to manage the remaining pages.
Create a Home component with the default design for the main page; it will contain the latest products in a clean design. Here's the code for the Home.js file inside the components folder:
import React from 'react'import MyWeb3 from 'web3'import Header from './Header'class Home extends React.Component { constructor() { super() } render() { return ( <div> <Header /> <div className="products-container">{this.props.productsHtml}</div> <div className="spacer"></div> </div> ) }}export ...