Rendering paywalls
Overview
In this quick start guide we'll demonstrate how to create a customer-facing paywall using Stigg's embeddable widget.
Before we begin
In order to complete this guide in your application code, please make sure that you have:
Initializing the React SDK
The first step is to initialize Stigg's React SDK with the client API key by wrapping your application with StiggProvider component.
import React from 'react';
import ReactDOM from 'react-dom';
import { StiggProvider } from '@stigg/react-sdk';
import App from './App';
ReactDOM.render(
<StiggProvider apiKey="YOUR_CLIENT_API_KEY">
<App />
</StiggProvider>,
document.getElementById('app'),
);
Rendering the paywall
Additional resources
Updated about 1 year ago
Whatβs Next