/pling-react

This is the official pling Create React App example.

Primary LanguageJavaScript

🔔 Pling

This is the official pling Create React App example. Checkout the official package.

👉 Implementation

Implemeting it is quite easy. First install it:

yarn add pling

Import the package:

import notify from "pling";

Copy and paste the following where you'd like to log something:

 await notify({
    key: process.env.REACT_APP_PLING_API_KEY,
    title: "Pling from the package!",
    description: "👋 👋 👋 👋"
  });

Please make sure to set your PLING_API_KEY environment variable.

In create react app, you can do so by creating a .env file in the root and specifying the following. Make sure to change the PLING_API_KEY to REACT_APP_PLING_API_KEY:

REACT_APP_PLING_API_KEY=YOUR_API_KEY_HERE