score:1

Accepted answer
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/16.6.1/umd/react.production.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react-dom/16.6.1/umd/react-dom.production.min.js"></script>

score:1

{
  !!revealed ? <SimpleButton onClick={this.hideDisplay} /> :
    <ExtendedButton onClick={this.showDisplay} />
}

Related Query

More Query from same tag