You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes when we use hot reloding (ex:- create-react-app) that time multiple instance of popup is creating in DOM. To avoid that you can add this peace of code
I've been thinking about the best way to approach this. Just always overwriting the previous div doesn't sound like a great idea to me, as it will probably be very unexpected for most of the users. However, your use-case does make sense as well.
I've come to an idea, where we can pass optional key or id or element property into the reactModal() function to instruct it to reuse the existing div matching the given selector, if any.
The text was updated successfully, but these errors were encountered: