react-usealert
v1.0.15
Published
alert text by clicking button
Downloads
6
Maintainers
Readme
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>
);
}