Provider Setup
SimplerSuiteReviewsProvider
Wrap your app (or product page section) with the provider:
import { SimplerSuiteReviewsProvider } from '@simplersuite/react';
function App() { return ( <SimplerSuiteReviewsProvider apiKey="sr_your_api_key" shopDomain="your-store.myshopify.com" apiUrl="https://reviews-api.simplersuite.co" // optional, default > {children} </SimplerSuiteReviewsProvider> );}Props
| Prop | Type | Required | Description |
|---|---|---|---|
apiKey | string | Yes | Your SimplerSuite Reviews API key |
shopDomain | string | Yes | Your .myshopify.com domain |
apiUrl | string | No | Custom API URL (default: https://reviews-api.simplersuite.co) |
children | ReactNode | Yes | Child components |
All hooks and components must be rendered inside the provider.