首页 > 解决方案 > 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
                />
}

标签: reactjsrendersemantic-ui-react

解决方案


推荐阅读