包详细信息

@magicbell/react-headless

magicbell56.4kSEE LICENSE IN LICENSE5.4.2

Hooks to build a notification inbox

bell, magicbell, notifications, notification center

自述文件

TypeScript code style: prettier minified minified + gzip npm version

React headless components for MagicBell

This package contains React headless components and hooks to build a notification inbox for your site powered by MagicBell.

Quick Start

npm i @magicbell/react-headless
import React from 'react';
import ReactDOM from 'react-dom';
import { MagicBellProvider } from '@magicbell/react-headless';

ReactDOM.render(
  <MagicBellProvider apiKey={MAGICBELL_API_KEY} userEmail="john@example.com">
    <App />
  </MagicBellProvider>,
  document.body,
);

Documentation

Please see the MagicBell documentation for more information about this SDK.