i was wandering, Is there a difference in terms of performance if import a color from an object, like so:
import { colors } from "theme/colors";
export const BoxStyled = styled.div`
background: ${colors.primary};
min-width: 184px;
`;
or if I use the theme like so :
export const BoxStyled = styled.div`
${({ theme: { colors }}) => `
background: ${colors.primary};
min-width: 184px;
`}
`;
I'm using ReactJS with styled-components