react-bem-mixin

0.1.1 • Public • Published

React Bem Mixin

just a simple bem mix to quick add bem classes in a component.

Build Status Dependencies

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

Readme

Keywords

none

Package Sidebar

Install

npm i react-bem-mixin

Weekly Downloads

1

Version

0.1.1

License

ISC

Last publish

Collaborators

  • morlay_null