Skip to main content

Github

npm

Installation

You can install the Unify Intent React library with your preferred package manager:

Usage

First, wrap your React app in a UnifyIntentProvider:
index.tsx
The UnifyIntentProvider automatically takes care of mounting and unmounting the client for you whenever the component mounts and unmounts. Any components rendered in your app can access and use the intent client using the useUnifyIntent hook:
Example.tsx
For details on how to use the client to send events, see the full Usage guide.