react-alert-on-close

1.0.5 • Public • Published

react-alert-on-close

React Alert on Close is a simpler helper function that will work on ReactJS projects. (TS application is a Work in progress).

Demo here.

How to use it?

In your .js or .jsx file, you can simply add the following piece of code.

import AlertOnClose from "react-alert-on-close";

//other imports
...

useEffect(()=>{
  //other side-effects
  ...
  AlertOnClose();
},[])

//other code
...

Installing

npm install react-alert-on-close
or
yarn add react-alert-on-close

Package Sidebar

Install

npm i react-alert-on-close

Weekly Downloads

0

Version

1.0.5

License

ISC

Unpacked Size

1.26 kB

Total Files

3

Last publish

Collaborators

  • divyaswormakai
  • atnas