Skip to main content

Overview

The @locai1/billing-react-sdk package provides React components and hooks for seamless billing integration in your React applications. This guide will help you get started with the package.

Prerequisites

  • Node.js (version 12 or higher)
  • npm, yarn or pnpm
  • A GitHub account with access to the @locai1 packages

Installation

1

Configure .npmrc

Create or update the .npmrc file in your project’s root directory with the following content:
@locai1:registry=https://npm.pkg.github.com/
//npm.pkg.github.com/:_authToken=${authToken}
2

Install the Package

Run the following command to install the @locai1/billing-react-sdk package:
npm install @locai1/billing-react-sdk
I