toknow
v0.0.4
Published
Toknow-js allows you to connect your app to Toknow, display surveys and trigger events.
Downloads
56
Maintainers
Readme
Toknow Browser JS Library
Please see Toknow Docs. Specifically, Quickstart/Implementation details.
What is Toknow
Toknow is your go-to solution for in-product micro-surveys that will supercharge your product experience! 🚀 For more information please check out tkforms.com.
How to use this library
- Install the Toknow package inside your project using npm:
npm install -s toknow
- Import Toknow and initialize the widget in your main component (e.g., App.tsx or App.js):
import Toknow from "toknow";
if (typeof window !== "undefined") {
Toknow.init({
environmentId: "your-environment-id",
apiHost: "https://tkforms.com:3000",
});
}
Replace your-environment-id with your actual environment ID. You can find your environment ID in the Setup Checklist in the Toknow settings.
For more detailed guides for different frameworks, check out our Next.js and Vue.js guides.