Skip to content

@bem-react/[email protected]

Compare
Choose a tag to compare
@yarastqt 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)