Broadleaf Microservices
  • v1.0.0-latest-prod

Commerce Shared React Library

Provides React UI components, hooks, and utilities for general use in rendering a React-based storefront. These handle common concerns such as icons, component overrides, auth and tenant context providers, and API web client registration.

Table of Contents

Installation

Using the package manager of your choice, run the following command inside your project directory to add the Commerce Shared React Library and its required dependencies:

npm install @broadleaf/commerce-shared-react @broadleaf/auth-react @broadleaf/commerce-sandbox @broadleaf/commerce-tenant @headlessui/react classnames cookie formik lodash react@18 react-dom@18 react-datepicker react-intl
# or
yarn add @broadleaf/commerce-shared-react @broadleaf/auth-react @broadleaf/commerce-sandbox @broadleaf/commerce-tenant @headlessui/react classnames cookie formik lodash react@18 react-dom@18 react-datepicker react-intl
Tip
These required dependencies are already included by the Next.js Starter project.