reactjs - react simanntic ui,正在处理条件组件
问题描述
在反应应用程序中,我试图显示带有语义 UI 反应的弹出窗口。与反应中的条件渲染组件一起使用时,弹出窗口将关闭。
{
((this.state.show === true) &&
<Popup
trigger={
<img
style={{marginTop : "10px", marginLeft : "6px"}}
src={questionCircleImg} alt="Loading..." max-width="50" max-height="50" />
}
content='Popup with a custom style prop'
inverted
/>
}
解决方案
推荐阅读
- c# - .net core 3.1 - 一般问题/设计问题
- java - how to match exactly one word among the others in REGEX 'or'(|) condition
- c# - 在发布版本中的 foreach 迭代之间释放内存?
- itext - 使用 itextsharp 从 pdf 中删除文本
- r - 尝试安装 rmarkdown 包给了我错误
- javascript - 如何设置前端访问express中的路由?
- powershell - 在 windows powershell ISE 中,尝试批量更新人员信息。我收到此错误消息
- java - 使用 Maven 使 Janino 的 2 个版本一起用于 Junit 测试
- android - 在 RecyclerView 中的单元格之间添加空间?
- python - 如何将长度不等的数组的元素复制到另一个?