Bring-your-own-UI react notification system
npm install react-headless-notifications> Bring-your-own-UI react notification system
 
``bash`
npm install --save react-headless-notifications
In your App.tsx:`tsx
import React from 'react'
import { NotificationProvider } from 'react-headless-notifications'
const App = () => {
return (
)
}
export default App
`
In your MyStuff.tsx:`tsx
import React from 'react'
import { useNotifications } from 'react-headless-notifications'
const MyStuff = () => {
const { addNotification } = useNotifications()
return (
<>
>
)
}
export default MyStuff
`
For a full running CRA example, see the example` directory.
MIT © jens-ox