A set of tools for developing user interfaces using the BEM methodology in React
Features:
withBemMod('Block', { url: '*' })
. Any url will be matched. Related issue #374.Full changes in CHANGELOG file.
BREAKING CHANGES:
&
to |
operator for building result interface after withMods
. See #298 for details.mod
method to any
from object
. See #296 for details.Full changes https://github.com/bem/bem-react-core/blob/master/packages/react/CHANGELOG.md#223-2018-08-08
withMods
HOC for modifiers;2.4kB
;Take a look new docs section
process.env
calls from UMD https://github.com/bem/bem-react-core/commit/8b3e3f011966bbed7af02541bffb94a663c6fbfd
replace
mode #21A
with A_m1_v1
mod, then inherit block B
from block A
and set B_m1_v1
mod you get CSS-classes: A A_m1_v1 B B_m1_v1
.17.7kB
to 4.1kB
#148 #183 Proof link
addMix
with function for consistency #155addBemClassName
with function for consistency #126<Bem/>
#125__base
calls in case of mixins #142elemMods
works as usual #156getChildContext
resolving #165