react add classname if code example
Example 1: add condition inside a className in reactjs
className={`banner ${active ? "active" : ""}`}
Example 2: jsx add class to element if
<div className={"btn-group pull-right " + (this.props.showBulkActions ? 'show' : 'hidden')}>