Steven

Mercatante

Steven Mercatante

Styled Components - referring to other components

const Link = styled.a`background: papayawhip; color: palevioletred;`;

const Icon = styled.svg`width: 48px; height: 48px; ${Link}:hover & { fill: rebeccapurple; }`;

See https://www.styled-components.com/docs/advanced#referring-to-other-components