Closed MudulOzan closed 2 years ago
I am using React 17 "sweetalert2": "^11.4.17", "sweetalert2-react-content": "^5.0.0", "react": "^17.0.2", "react-dom": "^17.0.2",
and my code:
import withReactContent from 'sweetalert2-react-content' import Swal from 'sweetalert2' const MySwal = withReactContent(Swal) MySwal.fire({ ...this.swalTemplate, title: <i>test</i>, text: global.resources.please_wait || "Please wait...", icon: '', showCancelButton: false, showConfirmButton: false, allowOutsideClick: () => false })
Getting the error below
With React 17 you need to use "sweetalert2-react-content": "^4.0.0"
"sweetalert2-react-content": "^4.0.0"
hahaha thanks for your feedback, you saved me in deadline haha
I am using React 17 "sweetalert2": "^11.4.17", "sweetalert2-react-content": "^5.0.0", "react": "^17.0.2", "react-dom": "^17.0.2",
and my code:
Getting the error below