className={`${styles.description} ${styles.yellow}`}
// 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>
//one class from props and second from custom css class
className={`${classes.container} custom_container`}
className={[this.state.className, this.props.content.divClassName].join(" ")}
<div className={`${styles.description} ${styles.yellow}`}>Multiple className</div>
var liClasses = classNames({
'main-class': true,
'activeClass': self.state.focused === index
});
return (<li className={liClasses}>{data.name}</li>);
import style from '/css/style.css';
<div className={style.style1+ ' ' + style.style2} />
...
var liClasses = classNames({
'main-class': true,
'activeClass': self.state.focused === index
});
return (<li className={liClasses}>{data.name}</li>);
...
<input className={`form-control round-lg ${this.state.valid ? '' : 'error'}`} />