xxxxxxxxxx
className={[this.state.className, this.props.content.divClassName].join(" ")}
xxxxxxxxxx
// Using String Templates
<div className={`${this.state.className} ${this.props.content.divClassName}}`>
...
</div>
// OR
// Using An Array
<div className={[this.state.className, this.props.content.divClassName].join(" ")}>
...
</div>
xxxxxxxxxx
<div className={`${styles.description} ${styles.yellow}`}>Multiple className</div>
xxxxxxxxxx
//one class from props and second from custom css class
className={`${classes.container} custom_container`}
xxxxxxxxxx
<input className={`form-control round-lg ${this.state.valid ? '' : 'error'}`} />
xxxxxxxxxx
var liClasses = classNames({
'main-class': true,
'activeClass': self.state.focused === index
});
return (<li className={liClasses}>{data.name}</li>);
xxxxxxxxxx
var liClasses = classNames({
'main-class': true,
'activeClass': self.state.focused === index
});
return (<li className={liClasses}>{data.name}</li>);
xxxxxxxxxx
<div className={isActive ? 'dropdown wishlist wishlist-dropdown off-canvas mr-4 d-lg-show opened' : 'dropdown wishlist wishlist-dropdown off-canvas mr-4 d-lg-show'} onClick={handleClick}>