You can use CSS for this.
<i className="fa fa-trash" style={{visibility: this.state.showButton ? 'visible' : 'hidden' }} />
Learn more about inline styles in React
You can use CSS for this.
<i className="fa fa-trash" style={{visibility: this.state.showButton ? 'visible' : 'hidden' }} />
Learn more about inline styles in React