HCL Commerce Version 9.1.8.0 or later

Create a wishlist-view component

After creating the Redux components and a mock data file, create wishlist-view component.

About this task

Follow the steps given below to build a wishlist-view component.

Procedure

  1. Create a wish-list directory under src/components/pages.
  2. After creating the directory, open the downloaded zip file. Copy the following files from wishlisttutorial_sourcecode/src/components/pages/wish-list/ directory:
    • wishlist-view.tsx
    • create-wishlist-view.tsx
    • display-wishlist-view.tsx
    • index.ts

    The wishlist-view has two child components, create-wishlist-view and display-wishlist-view. The individual view components use respective create and display wish list UI widgets.

    The view components contain the view logic, util functions, and translation string objects, which will be passed as properties to create-wishlist-widget/display-wishlist-widget components.