_V
Size: a a a
_V
А
SB
// block1
... объявляем блок и его реестры
// block2 (parent)
const registry = new Registry({ id: block1RegistryId })
registry.set('ProductCard', (props) => <ProductCard {...props} view='list' />)
const Block1 = withRegistry(registry)(Block1)
SB
import { id as registryId, IdeasPlayerRegistry } from './IdeasPlayer.registry'
const { ProductCard } = useComponentRegistry<IdeasPlayerRegistry>(registryId)import { registry } from './IdeasPlayer.registry'
const { ProductCard } = useComponentRegistry(registry)SB
import { id as registryId, IdeasPlayerRegistry } from './IdeasPlayer.registry'
const { ProductCard } = useComponentRegistry<IdeasPlayerRegistry>(registryId)import { registry } from './IdeasPlayer.registry'
const { ProductCard } = useComponentRegistry(registry)export const useRegistry = () => useComponentRegistry<IdeasPlayerRegistry>(id)было
import { useComponentRegistry } from '@bem-react/di'import { id as registryId, IdeasPlayerRegistry } from './IdeasPlayer.registry'
const { ProductCard } = useComponentRegistry<IdeasPlayerRegistry>(registryId)
сталоimport { useRegistry } from './IdeasPlayer.registry'
const { ProductCard } = useRegistry()EF
EF
A
EW
SB
SB
EF

EF
EF
n⚡