Comparing version 0.1.0 to 0.1.1
@@ -56,4 +56,7 @@ class PrefixArray { | ||
} | ||
} else if (typeof opt === 'string') { | ||
out.push(opt); | ||
} else { | ||
if(opt===undefined){opt='';} | ||
if(typeof opt==='string'){ | ||
out.push(opt) | ||
} | ||
} | ||
@@ -60,0 +63,0 @@ return out; |
{ | ||
"name": "rc-class", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "handle multiple react classnames", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -23,2 +23,6 @@ ## rc-class | ||
<div {...cn({'content':true},{'introduce':true})}></div> //result <div className="bot-content introduce"></div> | ||
//get className | ||
cn().className //result bot | ||
... | ||
@@ -25,0 +29,0 @@ |
10180
286
32