react-style-classes by Kontentino
Javascript package for merge arguments of component style classnames or merge another arguments.
$ npm install react-style-classes
or
$ yarn add react-style-classes
import classes from 'react-style-classes';
<div className={ classes("className1", "className2") } />
or use CSS modules
<div className={ classes("className1", "className2", style.container) } />
or even use Array
<div className={ classes("className1", "className2", ['class1', 'class2']) } />
<div className={ classes("className1", "className2", isModalVisible && style.modalWrapperVisible) } />