SweetAlert for React
Easily render React components within your SweetAlert modals.
This lets you continue to use features like Promises, but makes building advanced modal UIs much simpler.
npm install @sweetalert/with-react
When passing JSX as the only parameter, it will replace SweetAlert's
You can also explicitly set the
content option, if you want to set other options as well:
Or use a combination of both: