@am-hooks/use-notification
v1.0.0
Published
Send notification to user when using notification API
Downloads
3
Readme
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>;
}