ab-class-names
v1.0.5
Published
Just a simple thing that allows you to dynamically add or remove style class names.
Downloads
10
Readme
Dynamic class names for react.
Just a simple thing that allows you to dynamically add or remove style class names.
Installation
npm install ab-class-names --save
Usage
import classNames from 'ab-class-names' // you could name import whatever you want
<div className={classNames(
'container',
{ 'redColor': true },
{ 'greenColor': false }
)}>
</div>
// or
<div className={classNames(
'container',
{
'redColor': true,
'greenColor': false,
},
)}>
</div>