1.0.0 • Published 5 years ago

@am-hooks/use-notification v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

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>;
}