JSPM

@sentiment/js

0.1.1
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 2
    • Score
      100M100P100Q21902F
    • License MIT

    Sentiment-js allows you to connect your app to Sentiment, display surveys and trigger events.

    Package Exports

    • @sentiment/js

    Readme

    Sentiment Browser JS Library

    npm package MIT License

    Please see Sentiment Docs. Specifically, Quickstart/Implementation details.

    What is Sentiment

    Sentiment is your go-to solution for in-product micro-surveys that will supercharge your product experience! 🚀 For more information please check out sentiment.com.

    How to use this library

    1. Install the Sentiment package inside your project using npm:
    npm install -s @sentiment/js
    1. Import Sentiment and initialize the widget in your main component (e.g., App.tsx or App.js):
    import sentiment from "@sentiment/js";
    
    if (typeof window !== "undefined") {
      sentiment.init({
        environmentId: "your-environment-id",
      });
    }

    Replace your-environment-id with your actual environment ID. You can find your environment ID in the Setup Checklist in the Sentiment settings.

    For more detailed guides for different frameworks, check out our Framework Guides.