-
Notifications
You must be signed in to change notification settings - Fork 0
Sweet Alerts!
cjnunez edited this page Nov 7, 2019
·
1 revision
Sweet Alerts is a React friendly library to display window alerts and enhance the responsiveness of the overall site. I highly recommend looking over their documentation before each sweet alert is highly customize-able. The initial integration with Electra only scratches the surface of what it can do.
npm install --save sweetalert2 sweetalert2-react-content
npm install sweetalert2
Import these two statements in the beginning of the file you want to use sweet alerts in.
You don't have to create a event function to use these however, I found it makes it easier to call it when using it in other code.
Footer