react-usealert
TypeScript icon, indicating that this package has built-in type declarations

1.0.15 • Public • Published

About

Alert by clicking button

Installation

yarn i react-usealert

// or

npm i react-usealert

Usage

import { useAlert } from "react-usealert";

export default function App() {
  const { alerts } = useAlert({});

  return (
    <div>
      <button
        onClick={() => {
          alert((alerts));
        }}
      >
        Alert
      </button>
    </div>
  );
}

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i react-usealert

    Weekly Downloads

    0

    Version

    1.0.15

    License

    ISC

    Unpacked Size

    2.08 kB

    Total Files

    4

    Last publish

    Collaborators

    • khun1997