Created
May 15, 2015 06:28
-
-
Save mingan/2f700a951937b4458fb0 to your computer and use it in GitHub Desktop.
react-bem-helper wrapper to not use any prefix by default
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import BEM from 'react-bem-helper'; | |
import _o from 'lodash/object'; | |
export default function (blockName, opts = {}) { | |
const def = { | |
name: blockName, | |
prefix: null | |
}; | |
return new BEM(_o.merge(def, opts)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment