@chooks/use-notification

1.0.0 • Public • Published

Usage

브라우저 알림이 허용돼있는 경우 알림을 발생시킨다.

const App = () => {
    const triggerNotif = useNotification("Hi there", {
      body: "this is option"
    });
    return (
      <div>
        <button onClick={triggerNotif}>click this</button>
      </div>
    );
  };

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @chooks/use-notification

    Weekly Downloads

    1

    Version

    1.0.0

    License

    ISC

    Unpacked Size

    1.46 kB

    Total Files

    4

    Last publish

    Collaborators

    • chchaeun