@notifyon/react
Version:
React SDK for NotifyOn
46 lines (34 loc) • 807 B
Markdown
for NotifyOn - Real-time notifications for your React applications.
```bash
npm install @notifyon/react
yarn add @notifyon/react
pnpm add @notifyon/react
```
```jsx
import { NotifyOn } from '@notifyon/react';
function App() {
return (
<>
<NotifyOn
publicKey="pk_your_public_key"
userId="user_123"
/>
{/* Your app components */}
</>
);
}
```
| Prop | Type | Required | Description |
|------|------|----------|-------------|
| `publicKey` | string | Yes | Your NotifyOn public key |
| `userId` | string | Yes | The user ID to receive notifications |
The component automatically handles server-side rendering and only initializes on the client side.
MIT
React SDK