ЕИ
Size: a a a
ЕИ
ДМ
☬

ЮЧ
Ш

tabsЮЧ
☬
ЮЧ
☬
ЮЧ
ЮЧ
{ tabs.current === "PACKAGE_SUMMARY" && <PackageSummary /> }☬
{ tabs.current === "PACKAGE_SUMMARY" && <PackageSummary /> }ЮЧ
ЮЧ
☬
ЮЧ
key смотрел.ЮЧ
React.Children.map смотрел бы на key и в зависимости от него выводил бы.☬
ЮЧ
const Tabs = ({ current, children }) => {
return React.Children.map(children, child => {
if (child.props.key === current) {
return child
} else {
return null
}
})
}