Methods to send event or manage user updates based on user action in react-based websites.
Integrate SuprSendProvider
Integrate SuprSendProvider as it is needed for creating SuprSend Client and authenticating user.
Call useSuprSendClient hook to access client instance
Call useSuprSendClient hook in your react component code to get SuprSend client instance which has all event and user update methods.
Call track and user update methods.
Please refer these sections to call events and user update methods in your react application, as integration steps are same for both the web-sdk and react-sdk.