React
Events and User methods
This will guide you through integration steps of sending events and user update methods in react application.
1
Integrate SuprSendProvider
Integrate SuprSendProvider as it is needed for creating SuprSend Client and authenticating user.
2
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.
3
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.