@ian_test_nooks/use-notification

1.0.0 • Public • Published

@ian_test_nooks/use-notification

React Hook to show notification popup after grant permission

npm i @ian_test_nooks/use-notification

const trigerNotif = useNotification(title text, { body: bodyText });

import useNotification from "@ian_test_nooks/use-notification";

const App = () => {
  const trigerNotif = useNotification("Can I steel your kimchi?", {
    body: "I love kimchi dont you?"
  });
  return (
    <div className="App">
      <h1>Hello</h1>
      <button onClick={trigerNotif}>Hello</button>
    </div>
  );
};

Readme

Keywords

Package Sidebar

Install

npm i @ian_test_nooks/use-notification

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

1.73 kB

Total Files

4

Last publish

Collaborators

  • iian