render()

in client/src/pages/product.js [72:90]


  render() {
    const { status, productItem, apiError } = this.state;

    if (apiError) {
      return html`<app-error .apiError=${apiError}></app-error>`;
    }

    return html`
      <div class="productBase">
        ${status === 'loading'
          ? html`<p>loading...</p>`
          : html`<app-product-item
              .productId="{this.productId}"
              .productItem=${productItem}
              .updateParent=${this.updateParent}
            ></app-product-item>`}
      </div>
    `;
  }