[英]Alert in reactjs
I was trying to use alert
in my reactjs front-end. 我试图在我的reactjs前端中使用
alert
。 I just used the very basic alert mechanism like alert("error msg")
. 我只是使用了非常基本的警报机制,例如
alert("error msg")
。 However, is there any better/optimized way in reactjs for alert prompt like this? 但是,reactjs中是否有更好/优化的方式来发出这样的警报提示? The alert is not in a rendering function so I did not use
Alert
from react-bootstrap
. 警报不在呈现功能中,因此我没有使用
react-bootstrap
Alert
。
Try react-animated-modal
to show alerts in reactjs. 尝试使用
react-animated-modal
在reactjs中显示警报。 It has 40 animations provided by Animate.css
它具有
Animate.css
提供的40种动画
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.