Comment Comment by matb33 We’ve been doing: const classNames = [ “btn”, this.props.isSelected && “btn-selected” ].filter(Boolean).join(“ “) parent matb33 8 years ago