yarastqt
released this
23 Dec 08:43
·
222 commits
to master
since this release
Add support for extends base components from registry:
import { Registry, withRegistry } from '@bem-react/di'
import { AppDesktop, registryId } from './App@desktop'
const expRegistry = new Registry({ id: registryId })
// extends original Header
expRegistry.extends('Header', BaseHeader => props => (
<BaseHeader height={200} color={red} />
)))
const AppDesktopExp = withRegistry(expRegistry)(AppDesktop)