Getting started
Installation
Install the preferr-client using NPM or Yarn
npm install @preferr-app/preferr-client
yarn add @preferr-app/preferr-client
Initializing the client
To authenticate Preferr and start tracking your A/B tests, you'll need to activate Preferr using your API key.
Your API Key
XXXXXXXX
Somewhere in the root of your app, initialize Preferr like this:
import { Preferr } from "@preferr-app/preferr-client";
Preferr.init("XXXXXXXX") <--- After signing up, you'll have an API key
Now you're ready to create an A/B test!