reactstrap-alert
v1.0.3
Published
Very simple modal dialogs in the style of native alert()/confirm()/prompt()
Downloads
14
Maintainers
Readme
reactstrap-alert
A simple way to display dialogs with reactstrap
The task of the package is to replace the browser methods alert(), confirm(), prompt() with modal windows in the style of bootstrap using reactstrap
Installation
- NPM
npm i --save reactstrap-alert
- yarn
yarn add reactstrap-alert
Dependencies
- react
- reactstrap
- lodash
Usage
Just import the module
import {Alert, Confirm} from 'reactstrap-alert'
// ... code
const answer = await Confirm ("Do you really want to delete this user");
if (answer) {
// ... code
await Alert ("User deleted")
}