Pop-up display or not code optimization

 {
           showAlert ? (<AutoCodeAlert
             list={list}
             btn={btn}
             smsId={smsId}
             idList={idList}
             setAlterState={this.setAlterState}
             changeBtn = {this.changeBtn}
           />) : ''
         }
 

A significant start writing style is to switch the display to control the use does not display popups, and later Miss colleagues said Tuesday write better ~

Controlled by changing the pop showAlert not show significant

Guess you like

Origin blog.csdn.net/Luckyzhoufangbing/article/details/90747756