To use the Reviews API, install the @wix/reviews
package.
To install the package, follow the instructions below based on your development environment.
When developing with:
npm install @wix/reviews
or
yarn add @wix/reviews
When developing CLI or self-hosted Wix apps, as well as headless apps or sites, run the following command:
npm install @wix/reviews
or
yarn add @wix/reviews
To import the package in your code:
import { reviews } from "@wix/reviews";