This is a simplified version of classnames with high performance in ES6.
npm install easy-classnames
or
yarn add easy-classnames
<script src="https://unpkg.com/easy-classnames@1.0.0/dist/easyClassNames.umd.js" />
import classnames from 'easy-classnames'
const classnames = require('easy-classnames')
var classnames = window.easyClassNames
easyClassnames only support an object as argument to achieve the best performance without speed penalty.
classNames({ foo: true, bar: true }) // => 'foo bar'
MIT