juliancwirko / react-s-alert

Alerts / Notifications for React with rich configuration options
https://www.npmjs.com/package/react-s-alert
MIT License
649 stars 75 forks source link

Several <Alert /> render in one page #47

Closed AllenFang closed 7 years ago

AllenFang commented 7 years ago

HI @juliancwirko, I found if I render multiple react-s-alert in a page, when one of alert triggering, the alert will popup twice. is it a bug or we should use only one react-s-alert in a page?

Thanks

AllenFang commented 7 years ago

BTW, the popup twice >> Actually, it's not perform as like a stack, The two alert popup are overlapping.

juliancwirko commented 7 years ago

You should have only one <Alert /> component in the app. In you main component or as colse as possible.

AllenFang commented 7 years ago

all right, thank you