react-bem-mixin
v0.1.1
Published
just a simple bem mix to quick add bem classes in a component.
Downloads
4
Readme
React Bem Mixin
just a simple bem mix to quick add bem classes in a component.
Usage
See example
$$block
covert from this.constructor.displayName
$bemx(String:block[,String:elem, Object:mods, Array:mix])
mix item is
{
block: 'String'
elem: 'String'
mods: 'Object'
}
block and elem must use together
$emx([String:elem, Object:mods, Array:mix])
sort for $bemx, use $$block
as argument block