Разрушивание реквизита в стилевых компонентах
const Post = styled.article`
background: ${props =>
props.isFeatured ? props.theme.yellow : props.theme.white
};
`;
const Post = styled.article`
background: ${({ isFeatured, theme }) =>
isFeatured ? theme.yellow : theme.white
};
`;
Successful Stoat