bem / bem-react

A set of tools for developing user interfaces using the BEM methodology in React
http://bem.github.io/bem-react
Other
440 stars 64 forks source link

composeSimple className problem #565

Open axaxaman opened 4 years ago

axaxaman commented 4 years ago

code

const Component = compose(
    withPinCircleCircle, //cn - Button
    withThemeClear, //cn - MyButton
)(Base);

<Component>

expectation

classname:
Button_pin_circle-circle MyButton_theme-clear

reality:

classname:
Button_pin_circle-circle Button_theme-clear

reason: https://github.com/bem/bem-react/blob/48063ffd832086cd3472ea525a0654224768b14b/packages/core/core.ts#L166