@am-hooks/use-notification

Send notification to user when using notification API

Usage no npm install needed!

<script type="module">
  import amHooksUseNotification from 'https://cdn.skypack.dev/@am-hooks/use-notification';
</script>

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