@magicbell/react-headless
Version:
Hooks to build a notification inbox
34 lines (25 loc) • 1.38 kB
Markdown
[](http://www.typescriptlang.org/)
[](https://github.com/prettier/prettier)
[](https://bundlephobia.com/result?p=@magicbell/react-headless)
[](https://bundlephobia.com/result?p=@magicbell/react-headless)
[](https://www.npmjs.com/package/@magicbell/react-headless)
# React headless components for MagicBell
This package contains React headless components and hooks to build a
notification inbox for your site powered by [MagicBell](https://magicbell.com).
## Quick Start
```shell
npm i @magicbell/react-headless
```
```jsx
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](https://magicbell.com/docs/libraries/react-headless) for more information about this SDK.