react-swal
A React wrapper for SweetAlert
Installation
npm install --save react-swal
Usage
const SweetAlert = require('react-swal');
<SweetAlert isOpen={true}
type="warning"
confirmButtonText="Yup"
cancelButtonText="Nope"
callback={this.callback} />
Properties
react-swal
supports all configuration properties supported by SweetAlert. For more info,
see the "Configuration" section of the SweetAlert docs.