djorg83 / react-bootstrap-sweetalert

A React implementation of SweetAlert
https://djorg83.github.io/react-bootstrap-sweetalert/
MIT License
252 stars 55 forks source link

string ref, "container", has been found within a strict mode tree #73

Closed dgour007 closed 4 years ago

dgour007 commented 4 years ago

React app running in strict mode. Following warning is received on SweetAlert render:

Warning: A string ref, "container", has been found within a strict mode tree. String refs are a source of potential bugs and should be avoided. We recommend using useRef() or createRef() instead. Learn more about using refs safely here: https://fb.me/react-strict-mode-string-ref in div (created by Overlay) in Overlay (created by SweetAlert) in div (created by SweetAlert)

djorg83 commented 4 years ago

What version are you using? This was already reported and fixed.

dgour007 commented 4 years ago

Thanks..Yes its resolved in the latest. I was using older version..