@telegraph-notify/frontend-sdk
v1.0.2
Published
Telegraph Frontend SDK
Readme
React SDK for Telegraph
The React SDK is used for displaying In-App notifications and for users to change their notification preferences.
Table of Contents
Quick Start
Install the React SDK from npm.
$ npm i @telegraph-notify/frontend-sdkThen import and mount the notification component in your top-level components.
import { TelegraphInbox } from "@telegraph-notify/frontend-sdk";
<App>
<TelegraphInbox
user_id={<USER_ID>} // The unique identifier of the logged in user
userHash={<USER_HMAC>} // The hashed user_id
websocketUrl={<WEBSOCKET_GATEWAY_URL>} // The websocket gateway url
/>
</App>