Skip to main content
This guide assumes you have already installed the @locai1/billing-react-sdk package in your project.
After installing the @locai1/billing-react-sdk package, you need to set up the billing context and reducer in your application. This guide will help you with the initial setup.
1

Add billingReducer to Your Global Reducer

Ensure the billingReducer is included in your global reducer setup:
2

Wrap Your Application with BillingProvider

Import and wrap your application or the relevant part of your application with the BillingProvider:
3

Access Context Values

Use the useBillingContext hook to access the context values in your components: