Installation

To install the Useawards SDK, you can use npm or yarn. In your project directory, run one of the following commands:

npm install @useawards/client @useawards/react-dom @useawards/core

Usage

To use the Useawards SDK in your application, you need to import the desired package(s) and configure them with your API key:

import { createUseawardsClient } from '@useawards/client';
import { UseawardsProvider } from '@useawards/react-dom';
import { createUseawards } from '@useawards/core';

const client = createUseawardsClient(appId, apiKey);

const useawards = createUseawards(client);

function App() {
  return (
    <UseawardsProvider useawards={useawards}>
      {/* Your app code here */}
    </UseawardsProvider>
  );
}