@hookeasy/use-notification

1.0.1 • Public • Published

@hookeasy/use-notification

React Hook to update your notification event

install

npm i @hookeasy/use-notification

or

yarn add @hookeasy/use-notification

example

import React, { useEffect } from "react";
import ReactDOM from "react-dom";
import useNotification from "@hookeasy/use-notification";

const App = () => {
  const triggerNotif = useNotification("hello guys", {
    body: "goood!!"
  });
  return (
    <div className="App">
      <button onClick={triggerNotif}>Hello</button>
    </div>
  );
};

const rootElement = document.getElementById("root");
ReactDOM.render(<App />, rootElement);

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    2
  • 1.0.0
    0

Package Sidebar

Install

npm i @hookeasy/use-notification

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

3.07 kB

Total Files

5

Last publish

Collaborators

  • baram