Skip to content

Latest commit

 

History

History
10 lines (7 loc) · 324 Bytes

conditionally-apply-class-name.md

File metadata and controls

10 lines (7 loc) · 324 Bytes

How to apply class names conditionally

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: