Simple css class string builder without shenanigans.
npm install classies
const cls = require('classies')
const isSelected = true
let classString = cls({
foo: true,
bar: someCondition,
[classString]: true,
isSelected,
}, separator) // separator defaults to ' 'see jsperf
Latest version was done by @isiahmeadows and @gamb.
If you have a better version, feel free to submit a PR.
Releases are automated by pr-release
This is to debug pr-release
This edit comes from a user who wasn't an admin