【问题标题】:Bootstrap buttons not responsive in React引导按钮在 React 中没有响应
【发布时间】:2017-10-25 15:01:35
【问题描述】:

我在 React 中获取响应式引导按钮时遇到问题。该按钮的设计方式符合我的预期,但完全没有响应。有什么想法吗?

{numUsers > 1 && this.props.phase === "Game Over" ? <button onClick
{this.props.deal} type="button" className="btn btn-
primary">Deal</button> : ""}

【问题讨论】:

    标签: reactjs button twitter-bootstrap-3


    【解决方案1】:

    试试这个。如果这解决了您的问题,请在 Google Javascript operator precedence 进行解释。

    {(numUsers > 1 && this.props.phase === "Game Over") ? <button onClick
    {this.props.deal} type="button" className="btn btn-
    primary">Deal</button> : ""}
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-06-23
      • 1970-01-01
      • 2019-06-24
      • 2017-12-03
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多