React Hook for Browser Notifications
npm install use-browser-notifications> Made with create-react-library
 
``sh`
$ npm install --save use-browser-notifications
Or using Yarn with
`sh`
$ yarn add use-browser-notifications
`tsx
import React from 'react'
import { useBrowserNotifications } from 'use-browser-notifications';
function App() {
const { show } = useBrowserNotifications({
title: 'test notification',
body: 'Hello world!',
});
return (
Use Browser Notifications
export default App;
`
First install all the node dependencies using Yarn
`sh`
$ yarn
Then run the start script
`sh``
$ yarn start
MIT © andreasonny83