Skip to content

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

PropTypeRequiredDescription
apiKeystringYesYour SimplerSuite Reviews API key
shopDomainstringYesYour .myshopify.com domain
apiUrlstringNoCustom API URL (default: https://reviews-api.simplersuite.co)
childrenReactNodeYesChild components

All hooks and components must be rendered inside the provider.