@am-hooks/use-notification

1.0.0 • Public • Published

useNotification

notification API 를 사용할 때 유저에게 알림을 보내주기

Installation

yarn

yarn add @am-hooks/use-notification

npm

npm i @am-hooks/use-notification

Usage

import useNotification from "@am-hooks/use-notification";

const App = () => {
  const triggerNotif = useNotification("Title writing place", {
    body: "Write on the body using options"
  });

  return <button onClick={triggerNotif}>Woooow!</button>;
}



Readme

Keywords

Package Sidebar

Install

npm i @am-hooks/use-notification

Weekly Downloads

4

Version

1.0.0

License

MIT

Unpacked Size

1.84 kB

Total Files

4

Last publish

Collaborators

  • wam-6577