In order to apply class names dynamically, you can build a string on the fly and set the className
property:
<div className={"btn-group pull-right " + (this.props.showBulkActions ? 'show' : 'hidden')}>
References:
In order to apply class names dynamically, you can build a string on the fly and set the className
property:
<div className={"btn-group pull-right " + (this.props.showBulkActions ? 'show' : 'hidden')}>
References: