-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement easy-breezy API for constructing bem-string #165
Comments
import { carrier } from '@bem/naming';
const carrier = require('@bem/naming/carrier');
carrier('button2')('text')... |
carrier? seems pretty unexpected |
b('button2').e('text').m({ theme: 'normal' }) As for me looks easier for reading and understanding. |
import { b_ } from '@bem/naming';
const b_ = require('@bem/naming/b_');
b_('button2')('text')... |
I want!) World is ready to this magic) I like @skad0 implementation: b('button2').e('text').m({ theme: 'normal' }) Also, would be great add mix helper: const b1 = b('button2').e('text').m({ theme: 'normal', size: 'm' });
const b2 = b('sharik').e('palka').m({ dva: 'struna' });
b('dagestan').m({ moya: 'strana' }).mix(b1, b2); |
@awinogradov let's make it part of |
I've made temporary package easy-bem-naming for testing this kind API. We'll try to use it in the bem-react-core and then we can implement it here in |
Possible candidate:
The text was updated successfully, but these errors were encountered: